]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
put cpupool's member 'n_dom' after 'cpupool_id'
authorBaodong Chen <chenbaodong@mxnavi.com>
Mon, 17 Jun 2019 15:37:54 +0000 (17:37 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 17 Jun 2019 15:37:54 +0000 (17:37 +0200)
Thus, sizeof(struct cpupool) will save 8 bytes for 64-bit system.

Signed-off-by: Baodong Chen <chenbaodong@mxnavi.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/xen/sched-if.h

index b8e2b2e49ee2cc1325ec9dce1fa05486aa05a316..d82ead586a126e02178c5032f711bc99f9a47dd6 100644 (file)
@@ -356,9 +356,9 @@ static inline int sched_adjust_cpupool(const struct scheduler *s,
 struct cpupool
 {
     int              cpupool_id;
+    unsigned int     n_dom;
     cpumask_var_t    cpu_valid;      /* all cpus assigned to pool */
     struct cpupool   *next;
-    unsigned int     n_dom;
     struct scheduler *sched;
     atomic_t         refcnt;
 };