diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-10-05 08:56:15 +0100 |
---|---|---|
committer | Anders Roxell <anders.roxell@linaro.org> | 2013-11-25 13:29:02 +0100 |
commit | a3622874060a418d805fafceac033dbda2001840 (patch) | |
tree | 53db701e3d4d098a112530019f4b5daf2760866b /include | |
parent | 36740e3c30af46044c3fc20c35266e7a485f0a93 (diff) |
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')
-rw-r--r-- | include/linux/sched.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 178a8d909f14..424ed9751ddf 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1329,6 +1329,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; |