svn commit: r221396 - projects/largeSMP/sys/sys

Attilio Rao attilio at FreeBSD.org
Tue May 3 18:48:06 UTC 2011


Author: attilio
Date: Tue May  3 18:48:06 2011
New Revision: 221396
URL: http://svn.freebsd.org/changeset/base/221396

Log:
  Add a comment explaining the discrepancy in size between kernel and
  userland of cpuset_t.
  
  Discussed with:	jhb

Modified:
  projects/largeSMP/sys/sys/cpuset.h

Modified: projects/largeSMP/sys/sys/cpuset.h
==============================================================================
--- projects/largeSMP/sys/sys/cpuset.h	Tue May  3 18:36:36 2011	(r221395)
+++ projects/largeSMP/sys/sys/cpuset.h	Tue May  3 18:48:06 2011	(r221396)
@@ -36,6 +36,10 @@
 #define	CPU_SETSIZE	MAXCPU
 #endif
 
+/*
+ * In userland a bigger cpuset structure is preferable in order to cope
+ * with kernel bumping of MAXCPU and still have a compatible layout.
+ */
 #define	CPU_MAXSIZE	(4 * MAXCPU)
 
 #ifndef	CPU_SETSIZE


More information about the svn-src-projects mailing list