Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 May 2011 17:56:13 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r221901 - projects/largeSMP/sys/sys
Message-ID:  <201105141756.p4EHuD97010745@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Sat May 14 17:56:13 2011
New Revision: 221901
URL: http://svn.freebsd.org/changeset/base/221901

Log:
  Increase size of cg_count  to allow us to utilize >128 CPUs.
  
  Pad cg_count and cg_children to keep the struct aligned
  
  Reviewed by:	attilio@

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

Modified: projects/largeSMP/sys/sys/smp.h
==============================================================================
--- projects/largeSMP/sys/sys/smp.h	Sat May 14 17:44:12 2011	(r221900)
+++ projects/largeSMP/sys/sys/smp.h	Sat May 14 17:56:13 2011	(r221901)
@@ -35,8 +35,8 @@ struct cpu_group {
 	struct cpu_group *cg_parent;	/* Our parent group. */
 	struct cpu_group *cg_child;	/* Optional children groups. */
 	cpuset_t	cg_mask;	/* Mask of cpus in this group. */
-	int8_t		cg_count;	/* Count of cpus in this group. */
-	int8_t		cg_children;	/* Number of children groups. */
+	int32_t		cg_count;	/* Count of cpus in this group. */
+	int16_t		cg_children;	/* Number of children groups. */
 	int8_t		cg_level;	/* Shared cache level. */
 	int8_t		cg_flags;	/* Traversal modifiers. */
 };



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