summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/amd-pstate.c
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2024-12-07 00:28:41 -0600
committerMario Limonciello <mario.limonciello@amd.com>2025-03-06 13:01:25 -0600
commitf458cf79d73b144d900e0c274b9eb8a2f3641a0e (patch)
tree426525b7a62abb03d5aa531d2e00e2cd04ee1960 /drivers/cpufreq/amd-pstate.c
parent6f0b13f16f7a214996a8a125080a6a99bda5d1f7 (diff)
downloadlinux-next-f458cf79d73b144d900e0c274b9eb8a2f3641a0e.tar.gz
linux-next-f458cf79d73b144d900e0c274b9eb8a2f3641a0e.zip
cpufreq/amd-pstate: Drop `cppc_cap1_cached`
The `cppc_cap1_cached` variable isn't used at all, there is no need to read it at initialization for each CPU. Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Reviewed-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Diffstat (limited to 'drivers/cpufreq/amd-pstate.c')
-rw-r--r--drivers/cpufreq/amd-pstate.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c
index 65714d510ce3..6f1a3056bcbd 100644
--- a/drivers/cpufreq/amd-pstate.c
+++ b/drivers/cpufreq/amd-pstate.c
@@ -1508,11 +1508,6 @@ static int amd_pstate_epp_cpu_init(struct cpufreq_policy *policy)
if (ret)
return ret;
WRITE_ONCE(cpudata->cppc_req_cached, value);
-
- ret = rdmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_CAP1, &value);
- if (ret)
- return ret;
- WRITE_ONCE(cpudata->cppc_cap1_cached, value);
}
ret = amd_pstate_set_epp(cpudata, cpudata->epp_default);
if (ret)