Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2020 00:04:31 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r367738 - head/sys/sys
Message-ID:  <202011170004.0AH04VMx073584@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Tue Nov 17 00:04:30 2020
New Revision: 367738
URL: https://svnweb.freebsd.org/changeset/base/367738

Log:
  cpuset: reorder so that cs_mask does not share cacheline with cs_ref

Modified:
  head/sys/sys/cpuset.h

Modified: head/sys/sys/cpuset.h
==============================================================================
--- head/sys/sys/cpuset.h	Tue Nov 17 00:04:05 2020	(r367737)
+++ head/sys/sys/cpuset.h	Tue Nov 17 00:04:30 2020	(r367738)
@@ -111,15 +111,15 @@ LIST_HEAD(setlist, cpuset);
  * to deal with inconsistent results.
  */
 struct cpuset {
-	cpuset_t		cs_mask;	/* bitmask of valid cpus. */
-	struct domainset	*cs_domain;	/* (c) NUMA policy. */
 	volatile u_int		cs_ref;		/* (a) Reference count. */
 	int			cs_flags;	/* (s) Flags from below. */
-	cpusetid_t		cs_id;		/* (s) Id or INVALID. */
-	struct cpuset		*cs_parent;	/* (s) Pointer to our parent. */
 	LIST_ENTRY(cpuset)	cs_link;	/* (c) All identified sets. */
 	LIST_ENTRY(cpuset)	cs_siblings;	/* (c) Sibling set link. */
 	struct setlist		cs_children;	/* (c) List of children. */
+	struct domainset	*cs_domain;	/* (c) NUMA policy. */
+	cpusetid_t		cs_id;		/* (s) Id or INVALID. */
+	struct cpuset		*cs_parent;	/* (s) Pointer to our parent. */
+	cpuset_t		cs_mask;	/* bitmask of valid cpus. */
 };
 
 #define CPU_SET_ROOT    0x0001  /* Set is a root set. */



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