diff options
| author | Mario Limonciello <mario.limonciello@amd.com> | 2026-10-01 09:23:39 -0500 |
|---|---|---|
| committer | Mario Limonciello <superm1@kernel.org> | 2026-10-01 12:55:20 -0500 |
| commit | 4817d3e2b90dac50eb11cee32a0cf92d294261ea (patch) | |
| tree | fffc8f6f86c63b292fcbe4bee333fc8d9fc647bc /tools/perf/scripts/python/task-analyzer.py | |
| parent | 52763c00945ab30241d9c097547600b9e234e559 (diff) | |
ACPI: CPPC: Refactor boost ratio handling
Rename amd_get_boost_ratio_numerator() to amd_get_effective_highest_perf()
to better reflect that it returns the effective highest performance value
for a CPU, accounting for preferred cores and heterogeneous topologies.
Add a new helper amd_get_boost_ratio() for doing both for boost
ratio calculations and update callers to use it.
This refactoring is needed because on some AMD systems (Zen6+),
the boost ratio should be calculated from frequency values rather than
performance values.
Newer versions of the ACPI will introduce a proper interface
for getting this information, but for now hardcode values so that
these systems perform as intended and to unblock future scheduler
work while we continue to wait.
For now use some temporary hardcoded values for Zen6 platforms.
Reviewed-by: K Prateek Nayak <kprateek.nayak@amd.com>
Tested-by: K Prateek Nayak <kprateek.nayak@amd.com>
Acked-by: Rafael J. Wysocki (Intel) <rafael@kernel.org>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20261001142341.2934582-2-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <superm1@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
