diff options
author | Peter Zijlstra <[email protected]> | 2017-12-21 15:06:50 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-03-09 07:59:19 +0100 |
commit | 00357f5ec5d67a52a175da6f29f85c2c19d59bc8 (patch) | |
tree | 53799544850786339539ed2d7f39ff03a1f321b1 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | e022e0d38ad475fc650f22efa3deb2fb96e62542 (diff) |
sched/nohz: Clean up nohz enter/exit
The primary observation is that nohz enter/exit is always from the
current CPU, therefore NOHZ_TICK_STOPPED does not in fact need to be
an atomic.
Secondary is that we appear to have 2 nearly identical hooks in the
nohz enter code, set_cpu_sd_state_idle() and
nohz_balance_enter_idle(). Fold the whole set_cpu_sd_state thing into
nohz_balance_{enter,exit}_idle.
Removes an atomic op from both enter and exit paths.
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions