diff options
author | 2015-05-12 16:41:49 +0200 | |
---|---|---|
committer | 2015-05-19 08:39:12 +0200 | |
commit | b30f0e3ffedfa52b1d67a302ae5860c49998e5e2 (patch) | |
tree | 939884115ae2a9658da6e962833f00eb197d349a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | sched/preempt: Rename PREEMPT_CHECK_OFFSET to PREEMPT_DISABLE_OFFSET (diff) | |
download | linux-dev-b30f0e3ffedfa52b1d67a302ae5860c49998e5e2.tar.xz linux-dev-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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions