aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/aegis-neon.h
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2024-08-26 16:13:55 -0500
committerMario Limonciello <mario.limonciello@amd.com>2024-09-11 10:23:23 -0500
commit279f838a61f96cbfeb1f9ba060e4a452e6e041d0 (patch)
tree4ca5d112e8e09887ea34030509f45830f2129215 /crypto/aegis-neon.h
parent2819bfef6483c66c55064ca678f2630a1a09f3f9 (diff)
downloadlinux-yocto-279f838a61f96cbfeb1f9ba060e4a452e6e041d0.tar.gz
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 'crypto/aegis-neon.h')
0 files changed, 0 insertions, 0 deletions