]> www.infradead.org Git - users/hch/misc.git/commitdiff
cpufreq: intel_pstate: Use CPUFREQ_POLICY_UNKNOWN
authorChristian Loehle <christian.loehle@arm.com>
Wed, 11 Dec 2024 12:26:05 +0000 (12:26 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 18 Dec 2024 14:49:25 +0000 (15:49 +0100)
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.

Signed-off-by: Christian Loehle <christian.loehle@arm.com>
Link: https://patch.msgid.link/20241211122605.3048503-3-christian.loehle@arm.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c

index 9e14374498d6e59b49af0dc0ad7396601ebe5231..9c4cc01fd51aadc3c7d4a5870033e0f851c7a42a 100644 (file)
@@ -2713,7 +2713,7 @@ static int intel_pstate_init_cpu(unsigned int cpunum)
        }
 
        cpu->epp_powersave = -EINVAL;
-       cpu->epp_policy = 0;
+       cpu->epp_policy = CPUFREQ_POLICY_UNKNOWN;
 
        intel_pstate_get_cpu_pstates(cpu);