Skip to content

Commit 5082397

Browse files
committed
cpufreq/amd-pstate: Drop needless EPP initialization
The EPP value doesn't need to be cached to the CPPC request in amd_pstate_epp_update_limit() because it's passed as an argument at the end to amd_pstate_set_epp() and stored at that time. Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Reviewed-by: Perry Yuan <perry.yuan@amd.com> Tested-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com> Link: https://lore.kernel.org/r/20241012174519.897-4-mario.limonciello@amd.com Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
1 parent 047a2d0 commit 5082397

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/cpufreq/amd-pstate.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,12 +1528,6 @@ static int amd_pstate_epp_update_limit(struct cpufreq_policy *policy)
15281528
if (cpudata->policy == CPUFREQ_POLICY_PERFORMANCE)
15291529
epp = 0;
15301530

1531-
/* Set initial EPP value */
1532-
if (cpu_feature_enabled(X86_FEATURE_CPPC)) {
1533-
value &= ~GENMASK_ULL(31, 24);
1534-
value |= (u64)epp << 24;
1535-
}
1536-
15371531
WRITE_ONCE(cpudata->cppc_req_cached, value);
15381532
return amd_pstate_set_epp(cpudata, epp);
15391533
}

0 commit comments

Comments
 (0)