diff options
author | Beata Michalska <beata.michalska@arm.com> | 2025-02-20 12:10:15 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2025-02-21 12:37:52 +0300 |
commit | 20711efa91e8ba44149f5e2ed1cf81e5355650e5 (patch) | |
tree | 9a310fd36ba0fed18653b3fe4a926dc3f6ae04a4 /lib/debugobjects.c | |
parent | 39b19974982e03bd7b950f33bc0855385845c9fb (diff) | |
download | linux-20711efa91e8ba44149f5e2ed1cf81e5355650e5.tar.xz |
arm64: Utilize for_each_cpu_wrap for reference lookup
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.
Fixes: 16d1e27475f6 ("arm64: Provide an AMU-based version of arch_freq_get_on_cpu")
Signed-off-by: Beata Michalska <beata.michalska@arm.com>
Link: https://lore.kernel.org/r/20250220091015.2319901-1-beata.michalska@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions