Commit e975169b authored by Nathan Lynch's avatar Nathan Lynch Committed by Linus Torvalds

[PATCH] cpu_down() warning fix

Fix (harmless?) smp_processor_id() usage in preemptible section of
cpu_down.
Signed-off-by: default avatarNathan Lynch <nathanl@austin.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent dc852722
...@@ -132,7 +132,8 @@ int cpu_down(unsigned int cpu) ...@@ -132,7 +132,8 @@ int cpu_down(unsigned int cpu)
__cpu_die(cpu); __cpu_die(cpu);
/* Move it here so it can run. */ /* Move it here so it can run. */
kthread_bind(p, smp_processor_id()); kthread_bind(p, get_cpu());
put_cpu();
/* CPU is completely dead: tell everyone. Too late to complain. */ /* CPU is completely dead: tell everyone. Too late to complain. */
if (notifier_call_chain(&cpu_chain, CPU_DEAD, (void *)(long)cpu) if (notifier_call_chain(&cpu_chain, CPU_DEAD, (void *)(long)cpu)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment