aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64')
-rw-r--r--arch/ia64/kernel/process.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c
index ae96d4176995..cba6ac398736 100644
--- a/arch/ia64/kernel/process.c
+++ b/arch/ia64/kernel/process.c
@@ -237,6 +237,7 @@ void cpu_idle_wait(void)
237{ 237{
238 unsigned int cpu, this_cpu = get_cpu(); 238 unsigned int cpu, this_cpu = get_cpu();
239 cpumask_t map; 239 cpumask_t map;
240 cpumask_t tmp = current->cpus_allowed;
240 241
241 set_cpus_allowed(current, cpumask_of_cpu(this_cpu)); 242 set_cpus_allowed(current, cpumask_of_cpu(this_cpu));
242 put_cpu(); 243 put_cpu();
@@ -258,6 +259,7 @@ void cpu_idle_wait(void)
258 } 259 }
259 cpus_and(map, map, cpu_online_map); 260 cpus_and(map, map, cpu_online_map);
260 } while (!cpus_empty(map)); 261 } while (!cpus_empty(map));
262 set_cpus_allowed(current, tmp);
261} 263}
262EXPORT_SYMBOL_GPL(cpu_idle_wait); 264EXPORT_SYMBOL_GPL(cpu_idle_wait);
263 265