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

From: srinivas pandruvada

Date: Sat Feb 28 2026 - 02:07:13 EST


On Sat, 2026-02-28 at 06:57 +0000, Li,Rongqing(ACG CCN) wrote:
> >  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;
>

No worries.

-Srinivas

> [Li,Rongqing]
>
>
> > 2.9.4