mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
- Add a new cpuset macro, CPU_FILL(), for setting the set to all 1s.
This commit is contained in:
parent
db87e2dc03
commit
c8eb786c8d
1 changed files with 6 additions and 0 deletions
|
|
@ -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 a new issue