diff options
author | Peter Zijlstra <[email protected]> | 2015-09-28 17:45:40 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2015-10-06 17:08:12 +0200 |
commit | 87dcbc0610cb580c8eaf289f52aca3620af825f0 (patch) | |
tree | 8fe4c05507c8c9ff4e2369cc16f86cad2a82dd14 /tools/perf/util/trace-event-scripting.c | |
parent | fe19159225d8516f3f57a5fe8f735c01684f0ddd (diff) |
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) <[email protected]>
Reviewed-by: Steven Rostedt <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Reviewed-by: Frederic Weisbecker <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions