git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
patch-2_6_7-vs1_9_1_12
[linux-2.6.git]
/
arch
/
um
/
kernel
/
smp.c
diff --git
a/arch/um/kernel/smp.c
b/arch/um/kernel/smp.c
index
34f826c
..
b815855
100644
(file)
--- a/
arch/um/kernel/smp.c
+++ b/
arch/um/kernel/smp.c
@@
-266,6
+266,9
@@
int smp_call_function(void (*_func)(void *info), void *_info, int nonatomic,
if (!cpus)
return 0;
+ /* Can deadlock when called with interrupts disabled */
+ WARN_ON(irqs_disabled());
+
spin_lock_bh(&call_lock);
atomic_set(&scf_started, 0);
atomic_set(&scf_finished, 0);