[PATCH 0/5] cpufreq/amd-pstate: Reuse and refactor code
From: Dhananjay Ugwekar
Date: Wed Dec 04 2024 - 09:49:42 EST
Use static calls to avoid frequent MSR/shared memory system checks.
Reuse existing functions amd_pstate_update_perf() and
amd_pstate_set_epp() instead of duplicating code.
Remove an unnecessary check for active mode in online and offline
functions.
Eliminate a redundant function amd_pstate_epp_offline().
Dhananjay Ugwekar (5):
cpufreq/amd-pstate: Convert the amd_pstate_get/set_epp() to static
calls
cpufreq/amd-pstate: Move the invocation of amd_pstate_update_perf()
cpufreq/amd-pstate: Refactor amd_pstate_epp_reenable() and
amd_pstate_epp_offline()
cpufreq/amd-pstate: Remove the cppc_state check in offline/online
functions
cpufreq/amd-pstate: Merge amd_pstate_epp_cpu_offline() and
amd_pstate_epp_offline()
drivers/cpufreq/amd-pstate.c | 151 +++++++++++++++++------------------
1 file changed, 73 insertions(+), 78 deletions(-)
--
2.34.1