Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102696
b: refs/heads/master
c: 7b9d1b2
h: refs/heads/master
v: v3
  • Loading branch information
Heiko Carstens authored and David S. Miller committed Jun 9, 2008
1 parent 8294569 commit 85aaef2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1494ed1d318542baa9480cfd44d040a92635129
refs/heads/master: 7b9d1b22a382aa221018c19880ee22c44467feec
11 changes: 7 additions & 4 deletions trunk/net/iucv/iucv.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,14 +474,14 @@ static void iucv_setmask_mp(void)
{
int cpu;

preempt_disable();
get_online_cpus();
for_each_online_cpu(cpu)
/* Enable all cpus with a declared buffer. */
if (cpu_isset(cpu, iucv_buffer_cpumask) &&
!cpu_isset(cpu, iucv_irq_cpumask))
smp_call_function_single(cpu, iucv_allow_cpu,
NULL, 0, 1);
preempt_enable();
put_online_cpus();
}

/**
Expand Down Expand Up @@ -521,16 +521,17 @@ static int iucv_enable(void)
goto out;
/* Declare per cpu buffers. */
rc = -EIO;
preempt_disable();
get_online_cpus();
for_each_online_cpu(cpu)
smp_call_function_single(cpu, iucv_declare_cpu, NULL, 0, 1);
preempt_enable();
if (cpus_empty(iucv_buffer_cpumask))
/* No cpu could declare an iucv buffer. */
goto out_path;
put_online_cpus();
return 0;

out_path:
put_online_cpus();
kfree(iucv_path_table);
out:
return rc;
Expand All @@ -545,7 +546,9 @@ static int iucv_enable(void)
*/
static void iucv_disable(void)
{
get_online_cpus();
on_each_cpu(iucv_retrieve_cpu, NULL, 0, 1);
put_online_cpus();
kfree(iucv_path_table);
}

Expand Down

0 comments on commit 85aaef2

Please sign in to comment.