diff options
author | 2015-09-28 17:45:40 +0200 | |
---|---|---|
committer | 2015-10-06 17:08:12 +0200 | |
commit | 87dcbc0610cb580c8eaf289f52aca3620af825f0 (patch) | |
tree | 8fe4c05507c8c9ff4e2369cc16f86cad2a82dd14 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'sched/urgent' into sched/core, to pick up fixes before applying new changes (diff) | |
download | linux-dev-87dcbc0610cb580c8eaf289f52aca3620af825f0.tar.xz linux-dev-87dcbc0610cb580c8eaf289f52aca3620af825f0.zip |
sched/core: Simplify INIT_PREEMPT_COUNT
As per the following commit:
d86ee4809d03 ("sched: optimize cond_resched()")
we need PREEMPT_ACTIVE to avoid cond_resched() from working before
the scheduler is set up.
However, keeping preemption disabled should do the same thing
already, making the PREEMPT_ACTIVE part entirely redundant.
The only complication is !PREEMPT_COUNT kernels, where
PREEMPT_DISABLED ends up being 0. Instead we use an unconditional
PREEMPT_OFFSET to set preempt_count() even on !PREEMPT_COUNT
kernels.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <fweisbec@gmail.com>
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions