aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2009-06-23 06:57:46 +0000
committerJeff Roberson <jeff@FreeBSD.org>2009-06-23 06:57:46 +0000
commitc8eb786c8d7b7dba0ce490a7fddefe8301761932 (patch)
treedb5d86075be26a03d6209d914ab2cda7d48a01d9 /sys
parentdb87e2dc03410a4c94c5beeaf22f56f16072e7dc (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/cpuset.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/cpuset.h b/sys/sys/cpuset.h
index 1b0bd319f8a3..854fa29608ca 100644
--- a/sys/sys/cpuset.h
+++ b/sys/sys/cpuset.h
@@ -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; \