diff options
author | Peter Zijlstra <peterz@infradead.org> | 2015-09-28 18:05:34 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-10-06 17:08:15 +0200 |
commit | fc13aebab7d8f0d19d557c721a0f25cdf7ae905c (patch) | |
tree | c744211cc93f060f5ddb732288d6aef10b033baa /include | |
parent | sched/core: Create preempt_count invariant (diff) | |
download | linux-fc13aebab7d8f0d19d557c721a0f25cdf7ae905c.tar.xz linux-fc13aebab7d8f0d19d557c721a0f25cdf7ae905c.zip |
sched/core: Add preempt argument to __schedule()
There is only a single PREEMPT_ACTIVE use in the regular __schedule()
path and that is to circumvent the task->state check. Since the code
setting PREEMPT_ACTIVE is the immediate caller of __schedule() we can
replace this with a function argument.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <fweisbec@gmail.com>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions