sched: Add better debug output for might_sleep()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 7 Feb 2014 19:58:39 +0000 (20:58 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 22 Feb 2014 17:08:08 +0000 (18:08 +0100)
commit8f47b1871b8aac98f1a9d93bc3467fb97b65199a
tree0eebff7b82d2cfa93a728a363d0bd4019356d9cf
parentdb273be2a7d42f92b3471e0f717982928214a650
sched: Add better debug output for might_sleep()

might_sleep() can tell us where interrupts have been disabled, but we
have no idea what disabled preemption. Add some debug infrastructure.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1391803122-4425-4-git-send-email-bigeasy@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/sched.h
kernel/sched/core.c