aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2024-06-21 12:37:03 -1000
committerTejun Heo <[email protected]>2024-06-21 12:37:03 -1000
commit8988cad8d06eb6097667925d2eb0522850bb0aac (patch)
tree54ffeea81b0dac76610123bfe22f26e72a2659d9 /tools/perf/scripts/python/export-to-postgresql.py
parentb999e365c2982dbd50f01fec520215d3c61ea2aa (diff)
cpufreq_schedutil: Refactor sugov_cpu_is_busy()
sugov_cpu_is_busy() is used to avoid decreasing performance level while the CPU is busy and called by sugov_update_single_freq() and sugov_update_single_perf(). Both callers repeat the same pattern to first test for uclamp and then the business. Let's refactor so that the tests aren't repeated. The new helper is named sugov_hold_freq() and tests both the uclamp exception and CPU business. No functional changes. This will make adding more exception conditions easier. Signed-off-by: Tejun Heo <[email protected]> Reviewed-by: David Vernet <[email protected]> Reviewed-by: Christian Loehle <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Cc: Viresh Kumar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions