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:
b9a09a0
)
MIPS: smp: Warn on too early irq enable
author
Yong Zhang
<
[email protected]
>
Thu, 19 Jul 2012 07:13:53 +0000
(09:13 +0200)
committer
Ralf Baechle
<
[email protected]
>
Thu, 19 Jul 2012 09:23:44 +0000
(11:23 +0200)
Just to catch a potential issue.
Signed-off-by: Yong Zhang <
[email protected]
>
Cc: Sergei Shtylyov <
[email protected]
>
Cc: David Daney <
[email protected]
>
Acked-by: David Daney <
[email protected]
>
Patchwork: https://patchwork.linux-mips.org/patch/3852/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/kernel/smp.c
patch
|
blob
|
history
diff --git
a/arch/mips/kernel/smp.c
b/arch/mips/kernel/smp.c
index eb3e2b112a0dfb332c814fedfe5b49d33c0a8b68..1268392f1d2786bc3abb91fdb9a88ad84fa85ec9 100644
(file)
--- a/
arch/mips/kernel/smp.c
+++ b/
arch/mips/kernel/smp.c
@@
-130,6
+130,11
@@
asmlinkage __cpuinit void start_secondary(void)
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();
cpu_idle();