diff options
author | Xunlei Pang <[email protected]> | 2018-06-20 18:18:34 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-07-03 09:17:29 +0200 |
commit | f1d1be8aee6c461652aea8f58bedebaa73d7f4d3 (patch) | |
tree | d3d3500dbd34f3232e2b95aa9a7d48bef910d485 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 512ac999d2755d2b7109e996a76b6fb8b888631d (diff) |
sched/fair: Advance global expiration when period timer is restarted
When period gets restarted after some idle time, start_cfs_bandwidth()
doesn't update the expiration information, expire_cfs_rq_runtime() will
see cfs_rq->runtime_expires smaller than rq clock and go to the clock
drift logic, wasting needless CPU cycles on the scheduler hot path.
Update the global expiration in start_cfs_bandwidth() to avoid frequent
expire_cfs_rq_runtime() calls once a new period begins.
Signed-off-by: Xunlei Pang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Ben Segall <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[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