提交 ae1b3d51 编写于 作者: R Ralf Baechle

Make sure that the processor is actually online or die spectacularly.

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 1d40cfcd
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册