Re: [PATCH v2] arm64: Utilize for_each_cpu_wrap for reference lookup
From: Catalin Marinas
Date: Fri Feb 21 2025 - 04:46:12 EST
On Thu, 20 Feb 2025 09:10:15 +0000, Beata Michalska wrote:
> While searching for a reference CPU within a given policy,
> arch_freq_get_on_cpu relies on cpumask_next_wrap to iterate over
> all available CPUs and to ensure each is verified only once.
> Recent changes to cpumask_next_wrap will handle the latter no more,
> so switching to for_each_cpu_wrap, which preserves expected behavior
> while ensuring compatibility with the updates.
> Not to mention that when iterating over each CPU, using a dedicated
> iterator is preferable to an open-coded loop.
>
> [...]
Applied to arm64 (for-next/amuv1-avg-freq), thanks!
[1/1] arm64: Utilize for_each_cpu_wrap for reference lookup
https://git.kernel.org/arm64/c/20711efa91e8
--
Catalin