aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/kernel/smp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c
index 25762917e822..798fce509398 100644
--- 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,
142 int i, cpus = num_online_cpus() - 1; 142 int i, cpus = num_online_cpus() - 1;
143 int cpu = smp_processor_id(); 143 int cpu = smp_processor_id();
144 144
145 /*
146 * Can die spectacularly if this CPU isn't yet marked online
147 */
148 BUG_ON(!cpu_online(cpu));
149
145 if (!cpus) 150 if (!cpus)
146 return 0; 151 return 0;
147 152