summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-10-05 07:56:15 (GMT)
committerScott Wood <scottwood@freescale.com>2014-05-14 18:37:42 (GMT)
commit4e587ba1b480821d77ce55460b6740ba80bc55e8 (patch)
treebfaf3f64edbaf497c34c2c92cbbe6c58c0e4528f /include/linux
parent9d0b5f1413055cb87e4dd984d77f595ac10c6364 (diff)
downloadlinux-fsl-qoriq-4e587ba1b480821d77ce55460b6740ba80bc55e8.tar.xz
sched: 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>
Diffstat (limited to 'include/linux')
-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 b1e963e..d63aba2 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1321,6 +1321,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;