projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97fcef9
)
put cpupool's member 'n_dom' after 'cpupool_id'
author
Baodong Chen
<chenbaodong@mxnavi.com>
Mon, 17 Jun 2019 15:37:54 +0000
(17:37 +0200)
committer
Jan 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
patch
|
blob
|
history
diff --git
a/xen/include/xen/sched-if.h
b/xen/include/xen/sched-if.h
index b8e2b2e49ee2cc1325ec9dce1fa05486aa05a316..d82ead586a126e02178c5032f711bc99f9a47dd6 100644
(file)
--- 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;
};