[PATCH v2] powerpc/xive: Use cpumask_intersects()
Michael Ellerman
patch-notifications at ellerman.id.au
Sun Nov 17 23:09:57 AEDT 2024
On Thu, 26 Sep 2024 12:26:22 +0300, Costa Shulyupin wrote:
> Replace `cpumask_any_and(a, b) >= nr_cpu_ids`
> with the more readable `!cpumask_intersects(a, b)`.
>
> Comparison between cpumask_any_and() and cpumask_intersects()
>
> The cpumask_any_and() function expands using FIND_FIRST_BIT(),
> resulting in a loop that iterates through each bit of the bitmask:
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/xive: Use cpumask_intersects()
https://git.kernel.org/powerpc/c/6da1cab4f5f8eb778fd61f0eb6ca5b0a011dd44d
cheers
More information about the Linuxppc-dev
mailing list