summaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorThomas Gleixner2014-02-07 20:58:39 +0100
committerIngo Molnar2014-02-22 18:08:08 +0100
commit8f47b1871b8aac98f1a9d93bc3467fb97b65199a (patch)
tree0eebff7b82d2cfa93a728a363d0bd4019356d9cf /include/linux/sched.h
parentsched: Check for idle task in might_sleep() (diff)
downloadkernel-qcow2-linux-8f47b1871b8aac98f1a9d93bc3467fb97b65199a.tar.gz
kernel-qcow2-linux-8f47b1871b8aac98f1a9d93bc3467fb97b65199a.tar.xz
kernel-qcow2-linux-8f47b1871b8aac98f1a9d93bc3467fb97b65199a.zip
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>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index c49a2585ff7d..825ed838d4b9 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1463,6 +1463,9 @@ struct task_struct {
struct mutex perf_event_mutex;
struct list_head perf_event_list;
#endif
+#ifdef CONFIG_DEBUG_PREEMPT
+ unsigned long preempt_disable_ip;
+#endif
#ifdef CONFIG_NUMA
struct mempolicy *mempolicy; /* Protected by alloc_lock */
short il_next;