diff options
author | Julia Lawall <julia@diku.dk> | 2010-03-26 23:02:23 +0100 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2010-05-18 23:45:53 +0200 |
commit | 552dce3a071f0de2a84023fbba7f3b4ac36602cd (patch) | |
tree | 490c63647dcaa2b5f8519908dd003c59d17eb30c /arch/ia64/kernel/salinfo.c | |
parent | [IA64] Use set_cpus_allowed_ptr (diff) | |
download | linux-552dce3a071f0de2a84023fbba7f3b4ac36602cd.tar.xz linux-552dce3a071f0de2a84023fbba7f3b4ac36602cd.zip |
[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 call_on_cpu(int cpu, void (*fn)(void *), void *arg) { cpumask_t save_cpus_allowed = current->cpus_allowed; - cpumask_t new_cpus_allowed = cpumask_of_cpu(cpu); - set_cpus_allowed(current, new_cpus_allowed); + set_cpus_allowed_ptr(current, cpumask_of(cpu)); (*fn)(arg); - set_cpus_allowed(current, save_cpus_allowed); + set_cpus_allowed_ptr(current, &save_cpus_allowed); } static void |