Skip to content

Commit d978280

Browse files
KAGA-KOKOsuryasaimadhu
authored andcommitted
cpufreq/intel_pstate: Fix wrong macro conversion
The feature flag hwp_support_ids are supposed to match on is X86_FEATURE_HWP, not X86_FEATURE_APERFMPERF. Fix it. [ bp: Write commit message. ] Fixes: b11d77f ("cpufreq: Convert to new X86 CPU match macros") Reported-by: kernel test robot <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/20200324060124.GC11705@shao2-debian
1 parent 1826d56 commit d978280

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
@@ -2727,7 +2727,7 @@ static inline void intel_pstate_request_control_from_smm(void) {}
27272727

27282728
#define X86_MATCH_HWP(model, hwp_mode) \
27292729
X86_MATCH_VENDOR_FAM_MODEL_FEATURE(INTEL, 6, INTEL_FAM6_##model, \
2730-
X86_FEATURE_APERFMPERF, hwp_mode)
2730+
X86_FEATURE_HWP, hwp_mode)
27312731

27322732
static const struct x86_cpu_id hwp_support_ids[] __initconst = {
27332733
X86_MATCH_HWP(BROADWELL_X, INTEL_PSTATE_HWP_BROADWELL),

0 commit comments

Comments
 (0)