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

This commit is contained in:
Mateusz Guzik 2020-11-17 00:04:30 +00:00
parent 1a7bb89629
commit 9f1e578372
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367738

View file

@ -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. */