Thread (3 messages) 3 messages, 3 authors, 2025-02-21

Re: [PATCH v2] arm64: Utilize for_each_cpu_wrap for reference lookup

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2025-02-21 09:40:29
Also in: linux-arm-kernel, lkml

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help