xen/sched: move per cpu scheduler private data into struct sched_resource
authorJuergen Gross <jgross@suse.com>
Fri, 27 Sep 2019 07:00:11 +0000 (09:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Sep 2019 13:19:13 +0000 (15:19 +0200)
commit207589dbacd4ff92d1820860c27d74e23af920ba
treed837f811bcebdcaad204617eb5ecd8e212181691
parent532c929207a72aa9bfcc461fcc2a056263e71183
xen/sched: move per cpu scheduler private data into struct sched_resource

This prepares support of larger scheduling granularities, e.g. core
scheduling.

While at it move sched_has_urgent_vcpu() from include/asm-x86/cpuidle.h
into sched.h removing the need for including sched-if.h in cpuidle.h.
For that purpose remobe urgent_count from the scheduler private data
and make it a plain percpu variable.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
xen/common/sched_arinc653.c
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/asm-x86/cpuidle.h
xen/include/xen/sched-if.h
xen/include/xen/sched.h