答复: [PATCH][RFC] platform/x86: intel_speed_select: Use static_cpu_has for HWP check

From: Li,Rongqing(ACG CCN)

Date: Sat Feb 28 2026 - 01:59:16 EST


> static bool disable_dynamic_sst_features(void)
> {
> - u64 value;
> -
> - rdmsrq(MSR_PM_ENABLE, value);
> - return !(value & 0x1);
> + return !static_cpu_has(X86_FEATURE_HWP);
> }
>
> #define _read_cp_info(name_str, name, offset, start, width, mult_factor)\
> --


static_cpu_has(X86_FEATURE_HWP) is different from value of MSR_PM_ENABLE, when intel_pstate=no_hwp is configured in kernel cmdline

Sorry for the noise, please drop this patch;

[Li,Rongqing]


> 2.9.4