summaryrefslogtreecommitdiff
path: root/kernel/groups.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2015-05-12 16:41:49 +0200
committerIngo Molnar <mingo@kernel.org>2015-05-19 08:39:12 +0200
commitb30f0e3ffedfa52b1d67a302ae5860c49998e5e2 (patch)
tree939884115ae2a9658da6e962833f00eb197d349a /kernel/groups.c
parent90b62b5129d5cb50f62f40e684de7a1961e57197 (diff)
downloadlwn-b30f0e3ffedfa52b1d67a302ae5860c49998e5e2.tar.gz
lwn-b30f0e3ffedfa52b1d67a302ae5860c49998e5e2.zip
sched/preempt: Optimize preemption operations on __schedule() callers
__schedule() disables preemption and some of its callers (the preempt_schedule*() family) also set PREEMPT_ACTIVE. So we have two preempt_count() modifications that could be performed at once. Lets remove the preemption disablement from __schedule() and pull this responsibility to its callers in order to optimize preempt_count() operations in a single place. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1431441711-29753-5-git-send-email-fweisbec@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/groups.c')
0 files changed, 0 insertions, 0 deletions