projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12db648
)
x86: Don't send RESCHEDULE_VECTOR to offlined cpus
author
Gautham R Shenoy
<ego@in.ibm.com>
Mon, 10 Mar 2008 12:14:03 +0000
(17:44 +0530)
committer
Ingo Molnar
<mingo@elte.hu>
Thu, 17 Apr 2008 15:40:58 +0000
(17:40 +0200)
In the x86 native_smp_send_reschedule_function(), don't send the IPI if the
cpu has gone offline already. Warn nevertheless!!
Signed-off-by: Gautham R Shenoy <ego@in.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/smp.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/smp.c
b/arch/x86/kernel/smp.c
index 88c1e518a203e236fe3d7ae08ffebdac05aa0ae1..16c52aaaca3517c37e1e99d25c38ab5ce7756b5e 100644
(file)
--- a/
arch/x86/kernel/smp.c
+++ b/
arch/x86/kernel/smp.c
@@
-118,7
+118,10
@@
*/
static void native_smp_send_reschedule(int cpu)
{
- WARN_ON(cpu_is_offline(cpu));
+ if (unlikely(cpu_is_offline(cpu))) {
+ WARN_ON(1);
+ return;
+ }
send_IPI_mask(cpumask_of_cpu(cpu), RESCHEDULE_VECTOR);
}