aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2023-08-03 21:07:41 +0000
committerRafael J. Wysocki <[email protected]>2023-08-09 17:58:05 +0000
commit21d28cd2fa5fc01ee83e64df838ecd72112c09b7 (patch)
tree1b73023d7c0fe1fbb260b125d0d74336ab17fe06 /tools/perf/scripts/python/sched-migration.py
parentcpuidle: teo: Drop utilized from struct teo_cpu (diff)
downloadkernel-21d28cd2fa5fc01ee83e64df838ecd72112c09b7.tar.gz
kernel-21d28cd2fa5fc01ee83e64df838ecd72112c09b7.zip
cpuidle: teo: Do not call tick_nohz_get_sleep_length() upfront
Because the cost of calling tick_nohz_get_sleep_length() may increase in the future, reorder the code in teo_select() so it first uses the statistics to pick up a candidate idle state and applies the utilization heuristic to it and only then calls tick_nohz_get_sleep_length() to obtain the sleep length value and refine the selection if necessary. This change by itself does not cause tick_nohz_get_sleep_length() to be called less often, but it prepares the code for subsequent changes that will do so. Signed-off-by: Rafael J. Wysocki <[email protected]> Tested-by: Kajetan Puchalski <[email protected]> Tested-by: Anna-Maria Behnsen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions