Skip to content

Commit f77a438

Browse files
committed
cpufreq: intel_pstate: Use CPUFREQ_POLICY_UNKNOWN
JIRA: https://issues.redhat.com/browse/RHEL-78189 commit de51589 Author: Christian Loehle <christian.loehle@arm.com> Date: Wed Dec 11 12:26:05 2024 +0000 cpufreq: intel_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. 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> Signed-off-by: Steve Best <sbest@redhat.com>
1 parent 1bb9815 commit f77a438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cpufreq/intel_pstate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2713,7 +2713,7 @@ static int intel_pstate_init_cpu(unsigned int cpunum)
27132713
}
27142714

27152715
cpu->epp_powersave = -EINVAL;
2716-
cpu->epp_policy = 0;
2716+
cpu->epp_policy = CPUFREQ_POLICY_UNKNOWN;
27172717

27182718
intel_pstate_get_cpu_pstates(cpu);
27192719

0 commit comments

Comments
 (0)