svn commit: r194685 - head/sys/sys
Jeff Roberson
jeff at FreeBSD.org
Tue Jun 23 06:57:50 UTC 2009
Author: jeff
Date: Tue Jun 23 06:57:46 2009
New Revision: 194685
URL: http://svn.freebsd.org/changeset/base/194685
Log:
- Add a new cpuset macro, CPU_FILL(), for setting the set to all 1s.
Modified:
head/sys/sys/cpuset.h
Modified: head/sys/sys/cpuset.h
==============================================================================
--- head/sys/sys/cpuset.h Tue Jun 23 06:46:14 2009 (r194684)
+++ head/sys/sys/cpuset.h Tue Jun 23 06:57:46 2009 (r194685)
@@ -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; \
More information about the svn-src-head
mailing list