xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xen: put cpupool's member 'n_dom' after 'cpupool_id'
@ 2019-05-31  3:18 Baodong Chen
  2019-05-31  3:18 ` [Xen-devel] " Baodong Chen
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Baodong Chen @ 2019-05-31  3:18 UTC (permalink / raw)
  To: xen-devel
  Cc: Stefano Stabellini, Wei Liu, Konrad Rzeszutek Wilk,
	George Dunlap, Andrew Cooper, Ian Jackson, Tim Deegan,
	Julien Grall, Jan Beulich, Baodong Chen

Thus, sizeof(struct cpupool) will save 8 bytes for 64-bit system.

Signed-off-by: Baodong Chen <chenbaodong@mxnavi.com>
---
 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@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-06-17 15:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-31  3:18 [PATCH] xen: put cpupool's member 'n_dom' after 'cpupool_id' Baodong Chen
2019-05-31  3:18 ` [Xen-devel] " Baodong Chen
2019-05-31 10:52 ` Julien Grall
2019-05-31 10:52   ` [Xen-devel] " Julien Grall
2019-06-03  1:48   ` chenbaodong
2019-06-03  1:48     ` [Xen-devel] " chenbaodong
2019-06-03  9:30     ` Julien Grall
2019-06-03  9:30       ` [Xen-devel] " Julien Grall
2019-06-03 10:06       ` chenbaodong
2019-06-03 10:06         ` [Xen-devel] " chenbaodong
2019-06-17 15:19 ` Jan Beulich
2019-06-17 15:22   ` Juergen Gross

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).