[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241211122605.3048503-2-christian.loehle@arm.com>
Date: Wed, 11 Dec 2024 12:26:04 +0000
From: Christian Loehle <christian.loehle@....com>
To: rafael@...nel.org,
viresh.kumar@...aro.org
Cc: linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org,
Christian Loehle <christian.loehle@....com>,
Huang Rui <ray.huang@....com>,
gautham.shenoy@....com,
Mario Limonciello <mario.limonciello@....com>,
Perry Yuan <perry.yuan@....com>
Subject: [PATCH 1/2] cpufreq: amd-pstate: Use CPUFREQ_POLICY_UNKNOWN
epp_policy uses the same values as cpufreq_policy.policy and resets
to CPUFREQ_POLICY_UNKNOWN during offlining. Be consistent about
it and initialize to CPUFREQ_POLICY_UNKNOWN instead of 0, too.
No functional change intended.
Cc: Huang Rui <ray.huang@....com>
Cc: <gautham.shenoy@....com>
Cc: Mario Limonciello <mario.limonciello@....com>
Cc: Perry Yuan <perry.yuan@....com>
Signed-off-by: Christian Loehle <christian.loehle@....com>
---
drivers/cpufreq/amd-pstate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c
index d7630bab2516..546e69cbdf76 100644
--- a/drivers/cpufreq/amd-pstate.c
+++ b/drivers/cpufreq/amd-pstate.c
@@ -1449,7 +1449,7 @@ static int amd_pstate_epp_cpu_init(struct cpufreq_policy *policy)
return -ENOMEM;
cpudata->cpu = policy->cpu;
- cpudata->epp_policy = 0;
+ cpudata->epp_policy = CPUFREQ_POLICY_UNKNOWN;
ret = amd_pstate_init_perf(cpudata);
if (ret)
--
2.34.1
Powered by blists - more mailing lists