From: Baodong Chen Date: Mon, 17 Jun 2019 15:37:54 +0000 (+0200) Subject: put cpupool's member 'n_dom' after 'cpupool_id' X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~2019 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a287667e213b5442f2dfa52038c52bc156860e3b;p=xen.git put cpupool's member 'n_dom' after 'cpupool_id' Thus, sizeof(struct cpupool) will save 8 bytes for 64-bit system. Signed-off-by: Baodong Chen Acked-by: Jan Beulich --- diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h index b8e2b2e49e..d82ead586a 100644 --- a/xen/include/xen/sched-if.h +++ b/xen/include/xen/sched-if.h @@ -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; };