xen/cpupool: add cpu to sched_res_mask when removing it from cpupool
authorJuergen Gross <jgross@suse.com>
Wed, 2 Dec 2020 09:12:04 +0000 (10:12 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 2 Dec 2020 09:12:04 +0000 (10:12 +0100)
commit9f5ce6e5953456d499e05b48db1de5724d4b09de
tree0ed86acd5b976321f4ed1409b77495ba842e92f0
parentb00d0576723fa2155c0c8f5345a40335e0bc3912
xen/cpupool: add cpu to sched_res_mask when removing it from cpupool

When a cpu is removed from a cpupool and added to the free cpus it
should be added to sched_res_mask, too.

The related removal from sched_res_mask in case of core scheduling
is already done in schedule_cpu_add().

As long as all cpupools share the same scheduling granularity there
is nothing going wrong with the missing addition, but this will change
when per-cpupool granularity is fully supported.

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