projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d40cfc
)
Make sure that the processor is actually online or die spectacularly.
author
Ralf Baechle
<ralf@linux-mips.org>
Fri, 15 Jul 2005 15:44:02 +0000
(15:44 +0000)
committer
Ralf Baechle
<ralf@linux-mips.org>
Sat, 29 Oct 2005 18:31:55 +0000
(19:31 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/smp.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/kernel/smp.c
b/arch/mips/kernel/smp.c
index 25762917e8222cc468d5551675f462b9924102fa..798fce50939843b28fb916e7551f933ef508a95f 100644
(file)
--- a/
arch/mips/kernel/smp.c
+++ b/
arch/mips/kernel/smp.c
@@
-142,6
+142,11
@@
int smp_call_function (void (*func) (void *info), void *info, int retry,
int i, cpus = num_online_cpus() - 1;
int cpu = smp_processor_id();
+ /*
+ * Can die spectacularly if this CPU isn't yet marked online
+ */
+ BUG_ON(!cpu_online(cpu));
+
if (!cpus)
return 0;