aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorDhananjay Ugwekar <[email protected]>2025-04-28 07:16:24 +0000
committerMario Limonciello <[email protected]>2025-04-28 21:09:35 +0000
commit608a76b65288698677843d2f22418e03391ef95f (patch)
tree9d1f762b229a052fc7f7842c533335a4567efc3a /rust/helpers/helpers.c
parentcpufreq/amd-pstate: Add offline, online and suspend callbacks for amd_pstate_... (diff)
downloadkernel-608a76b65288698677843d2f22418e03391ef95f.tar.gz
kernel-608a76b65288698677843d2f22418e03391ef95f.zip
cpufreq/amd-pstate: Add support for the "Requested CPU Min frequency" BIOS option
Initialize lower frequency limit to the "Requested CPU Min frequency" BIOS option (if it is set) value as part of the driver->init() callback. The BIOS specified value is passed by the PMFW as min_perf in CPPC_REQ MSR. To ensure that we don't mistake a stale min_perf value in CPPC_REQ value as the "Requested CPU Min frequency" during a kexec wakeup, reset the CPPC_REQ.min_perf value back to the BIOS specified one in the offline, exit and suspend callbacks. amd_pstate_target() and amd_pstate_epp_update_limit() which are invoked as part of the resume() and online() callbacks will take care of restoring the CPPC_REQ back to the correct values. Signed-off-by: Dhananjay Ugwekar <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mario Limonciello <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions