diff options
| author | Xunlei Pang <[email protected]> | 2018-06-20 10:18:34 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2018-07-03 07:17:29 +0000 |
| commit | f1d1be8aee6c461652aea8f58bedebaa73d7f4d3 (patch) | |
| tree | d3d3500dbd34f3232e2b95aa9a7d48bef910d485 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
| parent | sched/fair: Fix bandwidth timer clock drift condition (diff) | |
| download | kernel-f1d1be8aee6c461652aea8f58bedebaa73d7f4d3.tar.gz kernel-f1d1be8aee6c461652aea8f58bedebaa73d7f4d3.zip | |
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/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions
