diff options
author | Julia Lawall <julia@diku.dk> | 2010-03-26 18:02:23 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2010-05-18 17:45:53 -0400 |
commit | 552dce3a071f0de2a84023fbba7f3b4ac36602cd (patch) | |
tree | 490c63647dcaa2b5f8519908dd003c59d17eb30c /arch/ia64/kernel/salinfo.c | |
parent | 93f7c93bee6382e01c34ea0c34ff8fb98c648734 (diff) |
[IA64] Use set_cpus_allowed_ptr
Use set_cpus_allowed_ptr rather than set_cpus_allowed.
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/salinfo.c')
-rw-r--r-- | arch/ia64/kernel/salinfo.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/ia64/kernel/salinfo.c b/arch/ia64/kernel/salinfo.c index e6676fca4828..aa8b5fa1a8de 100644 --- a/arch/ia64/kernel/salinfo.c +++ b/arch/ia64/kernel/salinfo.c | |||
@@ -404,10 +404,9 @@ static void | |||
404 | call_on_cpu(int cpu, void (*fn)(void *), void *arg) | 404 | call_on_cpu(int cpu, void (*fn)(void *), void *arg) |
405 | { | 405 | { |
406 | cpumask_t save_cpus_allowed = current->cpus_allowed; | 406 | cpumask_t save_cpus_allowed = current->cpus_allowed; |
407 | cpumask_t new_cpus_allowed = cpumask_of_cpu(cpu); | 407 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); |
408 | set_cpus_allowed(current, new_cpus_allowed); | ||
409 | (*fn)(arg); | 408 | (*fn)(arg); |
410 | set_cpus_allowed(current, save_cpus_allowed); | 409 | set_cpus_allowed_ptr(current, &save_cpus_allowed); |
411 | } | 410 | } |
412 | 411 | ||
413 | static void | 412 | static void |