1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

- Add a new cpuset macro, CPU_FILL(), for setting the set to all 1s.

This commit is contained in:
Jeff Roberson 2009-06-23 06:57:46 +00:00
parent db87e2dc03
commit c8eb786c8d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194685

View File

@ -60,6 +60,12 @@ typedef struct _cpuset {
(p)->__bits[__i] = 0; \
} while (0)
#define CPU_FILL(p) do { \
__size_t __i; \
for (__i = 0; __i < _NCPUWORDS; __i++) \
(p)->__bits[__i] = -1; \
} while (0)
/* Is p empty. */
#define CPU_EMPTY(p) __extension__ ({ \
__size_t __i; \