Commit b789ad63 authored by Yong Zhang's avatar Yong Zhang Committed by Ralf Baechle

MIPS: smp: Warn on too early irq enable

Just to catch a potential issue.
Signed-off-by: default avatarYong Zhang <yong.zhang0@gmail.com>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>
Cc: David Daney <david.daney@cavium.com>
Acked-by: default avatarDavid Daney <david.daney@cavium.com>
Patchwork: https://patchwork.linux-mips.org/patch/3852/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent b9a09a06
...@@ -130,6 +130,11 @@ asmlinkage __cpuinit void start_secondary(void) ...@@ -130,6 +130,11 @@ asmlinkage __cpuinit void start_secondary(void)
synchronise_count_slave(); synchronise_count_slave();
/*
* irq will be enabled in ->smp_finish(), enabling it too early
* is dangerous.
*/
WARN_ON_ONCE(!irqs_disabled());
mp_ops->smp_finish(); mp_ops->smp_finish();
cpu_idle(); cpu_idle();
......
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