Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jun 2009 06:57:47 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r194685 - head/sys/sys
Message-ID:  <200906230657.n5N6vltL066918@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;					\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906230657.n5N6vltL066918>