[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xen: RTDS: rearrange members of control structures
commit 647de517b08e77b9b5f76d6853dddc759b8df0b4 Author: Dario Faggioli <dario.faggioli@xxxxxxxxxx> AuthorDate: Fri Jun 23 12:55:19 2017 +0200 Commit: George Dunlap <george.dunlap@xxxxxxxxxx> CommitDate: Fri Jul 21 18:22:06 2017 +0100 xen: RTDS: rearrange members of control structures Nothing changed in `pahole` output, in terms of holes and padding, but some fields have been moved, to put related members in same cache line. Signed-off-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx> Acked-by: George Dunlap <george.dunlap@xxxxxxxxxx> --- xen/common/sched_rt.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/xen/common/sched_rt.c b/xen/common/sched_rt.c index 1b30014..39f6bee 100644 --- a/xen/common/sched_rt.c +++ b/xen/common/sched_rt.c @@ -171,11 +171,14 @@ static void repl_timer_handler(void *data); struct rt_private { spinlock_t lock; /* the global coarse-grained lock */ struct list_head sdom; /* list of availalbe domains, used for dump */ + struct list_head runq; /* ordered list of runnable vcpus */ struct list_head depletedq; /* unordered list of depleted vcpus */ + + struct timer *repl_timer; /* replenishment timer */ struct list_head replq; /* ordered list of vcpus that need replenishment */ + cpumask_t tickled; /* cpus been tickled */ - struct timer *repl_timer; /* replenishment timer */ }; /* @@ -185,10 +188,6 @@ struct rt_vcpu { struct list_head q_elem; /* on the runq/depletedq list */ struct list_head replq_elem; /* on the replenishment events list */ - /* Up-pointers */ - struct rt_dom *sdom; - struct vcpu *vcpu; - /* VCPU parameters, in nanoseconds */ s_time_t period; s_time_t budget; @@ -198,6 +197,10 @@ struct rt_vcpu { s_time_t last_start; /* last start time */ s_time_t cur_deadline; /* current deadline for EDF */ + /* Up-pointers */ + struct rt_dom *sdom; + struct vcpu *vcpu; + unsigned flags; /* mark __RTDS_scheduled, etc.. */ }; -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |