Skip to content

Commit

Permalink
cpufreq: intel_pstate: Use CPUFREQ_POLICY_UNKNOWN
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian Loehle authored and Rafael J. Wysocki committed Dec 18, 2024
1 parent 20e20f8 commit de51589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpufreq/intel_pstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit de51589

Please sign in to comment.