aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r--kernel/sched/core.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 7d76ccb79e91..2acdf19c5f7c 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3211,6 +3211,15 @@ static inline void preempt_latency_start(int val) { }
3211static inline void preempt_latency_stop(int val) { } 3211static inline void preempt_latency_stop(int val) { }
3212#endif 3212#endif
3213 3213
3214static inline unsigned long get_preempt_disable_ip(struct task_struct *p)
3215{
3216#ifdef CONFIG_DEBUG_PREEMPT
3217 return p->preempt_disable_ip;
3218#else
3219 return 0;
3220#endif
3221}
3222
3214/* 3223/*
3215 * Print scheduling while atomic bug: 3224 * Print scheduling while atomic bug:
3216 */ 3225 */