diff options
| author | Wanpeng Li <[email protected]> | 2016-04-22 17:07:24 +0800 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2016-04-28 10:39:54 +0200 |
| commit | 594dd290cf5403a9a5818619dfff42d8e8e0518e (patch) | |
| tree | 31fa5c3c77c6c5cc293a91bd85cef310f0b988e6 /tools/perf/scripts/python/bin | |
| parent | fec148c000d0f9ac21679601722811eb60b4cc52 (diff) | |
sched/cpufreq: Optimize cpufreq update kicker to avoid update multiple times
Sometimes delta_exec is 0 due to update_curr() is called multiple times,
this is captured by:
u64 delta_exec = rq_clock_task(rq) - curr->se.exec_start;
This patch optimizes the cpufreq update kicker by bailing out when nothing
changed, it will benefit the upcoming schedutil, since otherwise it will
(over)react to the special util/max combination.
Signed-off-by: Wanpeng Li <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Rafael J. Wysocki <[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/bin')
0 files changed, 0 insertions, 0 deletions