summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2024-12-09 21:52:44 +0300
committerMario Limonciello <mario.limonciello@amd.com>2024-12-11 19:44:53 +0300
commitb3781f30bfcfd7db12de2595adb01779e565e1c6 (patch)
treec2eb899a2e51150446d5cbf9d6659c4756109321 /tools/perf/scripts/python/task-analyzer.py
parent3f7b835fa4d0d06f82249a3aca989fdf9bdf4656 (diff)
downloadlinux-b3781f30bfcfd7db12de2595adb01779e565e1c6.tar.xz
cpufreq/amd-pstate: Cache EPP value and use that everywhere
Cache the value in cpudata->epp_cached, and use that for all callers. As all callers use cached value merge amd_pstate_get_energy_pref_index() into show_energy_performance_preference(). Check if the EPP value is changed before writing it to MSR or shared memory region. Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Link: https://lore.kernel.org/r/20241209185248.16301-12-mario.limonciello@amd.com Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions