> Introduce bitmap_intersects_and() to determine whether the intersection > of three bitmaps is non-empty. Unlike cpumask_first_and_and(), this > returns immediately when an intersecting word is found and does not > calculate the first matching bit. > > Add cpumask_intersects_and() as the corresponding cpumask wrapper. > > A subsequent patch uses the helper to determine whether a task > has a CPU that is present in its affinity mask, the preferred CPU mask, > and task possible CPU mask. > > Suggested-by: Yury Norov <[email protected]> > Signed-off-by: Shrikanth Hegde <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=2
