[xen staging] put cpupool's member 'n_dom' after 'cpupool_id'

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] put cpupool's member 'n_dom' after 'cpupool_id'

patchbot
commit a287667e213b5442f2dfa52038c52bc156860e3b
Author:     Baodong Chen <[hidden email]>
AuthorDate: Mon Jun 17 17:37:54 2019 +0200
Commit:     Jan Beulich <[hidden email]>
CommitDate: Mon Jun 17 17:37:54 2019 +0200

    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 <[hidden email]>
    Acked-by: Jan Beulich <[hidden email]>
---
 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 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;
 };
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog