Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140431
b: refs/heads/master
c: 641cd4c
h: refs/heads/master
i:
  140429: b7d4ce4
  140427: bf11b09
  140423: eb4c3f2
  140415: 3799523
v: v3
  • Loading branch information
Ingo Molnar committed Mar 13, 2009
1 parent 35fc264 commit 2e796ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 25d500067d5a666d1336598d1b324793554e5496
refs/heads/master: 641cd4cfcdc71ce01535b31cc4d57d59a1fae1fc
7 changes: 4 additions & 3 deletions trunk/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
#include <linux/rcupdate.h>
#include <linux/rculist.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/percpu.h>
#include <linux/init.h>
Expand Down Expand Up @@ -285,7 +286,7 @@ int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
this_cpu = get_cpu();

/* Can deadlock when called with interrupts disabled */
WARN_ON(irqs_disabled());
WARN_ON_ONCE(irqs_disabled() && !oops_in_progress);

if (cpu == this_cpu) {
local_irq_save(flags);
Expand Down Expand Up @@ -329,7 +330,7 @@ void __smp_call_function_single(int cpu, struct call_single_data *data,
csd_lock(data);

/* Can deadlock when called with interrupts disabled */
WARN_ON(wait && irqs_disabled());
WARN_ON_ONCE(wait && irqs_disabled() && !oops_in_progress);

generic_exec_single(cpu, data, wait);
}
Expand Down Expand Up @@ -365,7 +366,7 @@ void smp_call_function_many(const struct cpumask *mask,
int cpu, next_cpu, this_cpu = smp_processor_id();

/* Can deadlock when called with interrupts disabled */
WARN_ON(irqs_disabled());
WARN_ON_ONCE(irqs_disabled() && !oops_in_progress);

/* So, what's a CPU they want? Ignoring this one. */
cpu = cpumask_first_and(mask, cpu_online_mask);
Expand Down

0 comments on commit 2e796ee

Please sign in to comment.