Re: [PATCH RFT] cpufreq: intel_pstate: Refresh cpuinfo.max_freq when a CPU goes online
From: Rafael J. Wysocki (Intel)
Date: Fri Nov 20 2026 - 12:09:34 EST
On Sun, Nov 15, 2026 at 9:53 AM Ximing Zhang <xzhangjr@xxxxxxxxx> wrote:
>
> On Sat, Nov 14, 2026, Hugo Sales wrote:
> > I have no HWP machine, so the HWP capability path is untested
>
> The patch fixed the stale cpuinfo_max_freq on my Core i7-10510U with
> intel_pstate in active mode and HWP enabled.
>
> The test changed no_turbo while CPU 7 was offline, then brought CPU 7
> back online. These are policy7/cpuinfo_max_freq readings in kHz:
>
> Turbo change Unpatched Patched
> off to on 1800000 4900000
> on to off 4900000 1800000
>
> Both patched readings matched CPU 7's reference with all CPUs online.
> CPU 0 stayed online and reported the expected maximum in both cases.
>
> Tested-by: Ximing Zhang <xzhangjr@xxxxxxxxx>
Applied as 7.4-rc material, but I renamed
intel_pstate_update_cpuinfo_max_freq_locked() to
__intel_pstate_update_cpuinfo_max_freq().
Thanks!