From 9f1e57837285f3a557183e0fab3b53b5abda874d Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Tue, 17 Nov 2020 00:04:30 +0000 Subject: [PATCH] cpuset: reorder so that cs_mask does not share cacheline with cs_ref --- sys/sys/cpuset.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/sys/cpuset.h b/sys/sys/cpuset.h index 09cc975f93e..c48a0440d80 100644 --- a/sys/sys/cpuset.h +++ b/sys/sys/cpuset.h @@ -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. */ -- 2.45.2