xen/cpupool: add missing bits for per-cpupool scheduling granularity
authorJuergen Gross <jgross@suse.com>
Wed, 2 Dec 2020 09:12:37 +0000 (10:12 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 2 Dec 2020 09:12:37 +0000 (10:12 +0100)
commit1283ad87c6314daed6e9e7af2ab5202d96276202
treea04591e74707fb7b9027fa2d318681713422ad68
parent9f5ce6e5953456d499e05b48db1de5724d4b09de
xen/cpupool: add missing bits for per-cpupool scheduling granularity

Even with storing the scheduling granularity in struct cpupool there
are still a few bits missing for being able to have cpupools with
different granularity (apart from the missing interface for setting
the individual granularities): the number of cpus in a scheduling
unit is always taken from the global sched_granularity variable.

So store the value in struct cpupool and use that instead of
sched_granularity.

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