[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] xen: 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 <chenbaodong@xxxxxxxxxx> --- xen/include/xen/sched-if.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h index 92bc7a0..f0cf210 100644 --- a/xen/include/xen/sched-if.h +++ b/xen/include/xen/sched-if.h @@ -213,9 +213,9 @@ static inline void sched_free_domdata(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; }; -- 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |