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;                                   \
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to