Skip to content

Commit 249b62c

Browse files
wkarnyrafaeljw
authored andcommitted
cpufreq: amd-pstate: Remove fast_switch_possible flag from active driver
amd_pstate active mode driver is only compatible with static governors. Therefore it doesn't need fast_switch functionality. Remove fast_switch_possible flag from amd_pstate active mode driver. Fixes: ffa5096 ("cpufreq: amd-pstate: implement Pstate EPP support for the AMD processors") Signed-off-by: Wyes Karny <wyes.karny@amd.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 4badf2e commit 249b62c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/cpufreq/amd-pstate.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,6 @@ static int amd_pstate_epp_cpu_init(struct cpufreq_policy *policy)
11021102
policy->policy = CPUFREQ_POLICY_POWERSAVE;
11031103

11041104
if (boot_cpu_has(X86_FEATURE_CPPC)) {
1105-
policy->fast_switch_possible = true;
11061105
ret = rdmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ, &value);
11071106
if (ret)
11081107
return ret;
@@ -1125,7 +1124,6 @@ static int amd_pstate_epp_cpu_init(struct cpufreq_policy *policy)
11251124
static int amd_pstate_epp_cpu_exit(struct cpufreq_policy *policy)
11261125
{
11271126
pr_debug("CPU %d exiting\n", policy->cpu);
1128-
policy->fast_switch_possible = false;
11291127
return 0;
11301128
}
11311129

0 commit comments

Comments
 (0)