diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-02-03 17:37:48 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-03-02 02:42:23 -0500 |
commit | 59ddbcb2f45b958cf1f11f122b666cbcf50cd57b (patch) | |
tree | 867e904e401fe9d070f1de7355c15004a26adf7e /include/linux/sched.h | |
parent | c930b2c0de32f45ce8f67affe936ce7a05b07b00 (diff) |
sched/core: Move the get_preempt_disable_ip() inline to sched/core.c
It's defined in <linux/sched.h>, but nothing outside the scheduler
uses it - so move it to the sched/core.c usage site.
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index c204613396cd..df42cac04243 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -3419,15 +3419,6 @@ static inline void cond_resched_rcu(void) | |||
3419 | #endif | 3419 | #endif |
3420 | } | 3420 | } |
3421 | 3421 | ||
3422 | static inline unsigned long get_preempt_disable_ip(struct task_struct *p) | ||
3423 | { | ||
3424 | #ifdef CONFIG_DEBUG_PREEMPT | ||
3425 | return p->preempt_disable_ip; | ||
3426 | #else | ||
3427 | return 0; | ||
3428 | #endif | ||
3429 | } | ||
3430 | |||
3431 | /* | 3422 | /* |
3432 | * Does a critical section need to be broken due to another | 3423 | * Does a critical section need to be broken due to another |
3433 | * task waiting?: (technically does not depend on CONFIG_PREEMPT, | 3424 | * task waiting?: (technically does not depend on CONFIG_PREEMPT, |