svn commit: r367738 - head/sys/sys
Mateusz Guzik
mjg at FreeBSD.org
Tue Nov 17 00:04:31 UTC 2020
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. */
More information about the svn-src-all
mailing list