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:
parent
db87e2dc03
commit
c8eb786c8d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194685
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user