aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2008-05-23 12:05:58 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-06 09:19:37 -0400
commite21f5b153b9b4a6775d7d41964e372e13a9178ab (patch)
tree2d57f30acb571f474ea1dc1c902882e01d4c8670 /kernel/sched.c
parentc7aceaba042702538b23cf4e0de1b2891ad8e671 (diff)
sched: print module list in the "scheduling while atomic" warning
For the normal WARN_ON() etc we added a print-the-modules-list already, which is very useful to figure out candidates for certain types of bugs. This patch adds the same print to the "scheduling while atomic" BUG warning, for the same reason: when we get here it's very useful to see which modules are loaded, to narrow down the candidate code list. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Cc: mingo@elte.hu Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index f3faec52c5ab..84a360670b9d 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4070,6 +4070,7 @@ static noinline void __schedule_bug(struct task_struct *prev)
4070 prev->comm, prev->pid, preempt_count()); 4070 prev->comm, prev->pid, preempt_count());
4071 4071
4072 debug_show_held_locks(prev); 4072 debug_show_held_locks(prev);
4073 print_modules();
4073 if (irqs_disabled()) 4074 if (irqs_disabled())
4074 print_irqtrace_events(prev); 4075 print_irqtrace_events(prev);
4075 4076