xen/sched: add runstate counters to struct sched_unit
authorJuergen Gross <jgross@suse.com>
Fri, 27 Sep 2019 07:00:29 +0000 (09:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Sep 2019 14:02:23 +0000 (16:02 +0200)
commit427709a9b2831b71e5a86f2b1b99185fb270d0f5
tree59475c5537d0e8228568815d8bd5171321e1f225
parent4ef0e1fe967f62af0f3ba06fb126fd5628cb094c
xen/sched: add runstate counters to struct sched_unit

Add counters to struct sched_unit summing up runstates of associated
vcpus. This allows doing quick checks whether a unit has any vcpu
running or whether only a single vcpu of a unit is running.

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