HomeFreeBSD

cpuset(9): Add CPU_FOREACH_IS(SET|CLR) and modify consumers to use it

Description

cpuset(9): Add CPU_FOREACH_IS(SET|CLR) and modify consumers to use it

This implementation is faster and doesn't modify the cpuset, so it lets
us avoid some unnecessary copying as well. No functional change
intended.

This is a re-application of commit
9068f6ea697b1b28ad1326a4c7a9ba86f08b985e.

Reviewed by: cem, kib, jhb
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32029

Details

Provenance
markjAuthored on Sep 21 2021, 3:36 PM
Reviewer
cem
Differential Revision
D32029: Convert consumers to use the CPU_FOREACH_SET() macro
Parents
rG51425cb2107c: bitset: Reimplement BIT_FOREACH_IS(SET|CLR)
Branches
Unknown
Tags
Unknown