summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2024-08-27 00:13:55 +0300
committerMario Limonciello <mario.limonciello@amd.com>2024-09-11 18:23:23 +0300
commit279f838a61f96cbfeb1f9ba060e4a452e6e041d0 (patch)
tree4ca5d112e8e09887ea34030509f45830f2129215 /rust
parent2819bfef6483c66c55064ca678f2630a1a09f3f9 (diff)
downloadlinux-279f838a61f96cbfeb1f9ba060e4a452e6e041d0.tar.xz
x86/amd: Detect preferred cores in amd_get_boost_ratio_numerator()
AMD systems that support preferred cores will use "166" as their numerator for max frequency calculations instead of "255". Add a function for detecting preferred cores by looking at the highest perf value on all cores. If preferred cores are enabled return 166 and if disabled the value in the highest perf register. As the function will be called multiple times, cache the values for the boost numerator and if preferred cores will be enabled in global variables. Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions