xen/sched: introduce struct sched_resource
authorJuergen Gross <jgross@suse.com>
Fri, 27 Sep 2019 07:00:08 +0000 (09:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Sep 2019 13:17:30 +0000 (15:17 +0200)
commitd62fefa4d45987375124dda276a099d3d5f896bb
tree24fa1f184401c79136d41318b577538428050c51
parent141db7fd4d2df79120bebcc3a9746a48d03231f1
xen/sched: introduce struct sched_resource

Add a scheduling abstraction layer between physical processors and the
schedulers by introducing a struct sched_resource. Each scheduler unit
running is active on such a scheduler resource. For the time being
there is one struct sched_resource per cpu, but in future there might
be one for each core or socket only.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
xen/common/sched_credit.c
xen/common/sched_credit2.c
xen/common/sched_null.c
xen/common/sched_rt.c
xen/common/schedule.c
xen/include/xen/sched-if.h
xen/include/xen/sched.h