sched: fix onlining cpu with core scheduling active
authorJuergen Gross <jgross@suse.com>
Tue, 24 Mar 2020 16:36:44 +0000 (17:36 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 24 Mar 2020 16:36:44 +0000 (17:36 +0100)
commit4c7d340f75abc64f131b0f9bffd6d66d72e43528
tree15933df4e4c17e65204f556f8444f68895a2d3de
parent3ec1296ad3a823609eec479cb6c7ee493f6a888b
sched: fix onlining cpu with core scheduling active

When onlining a cpu cpupool_cpu_add() checks whether all siblings of
the new cpu are free in order to decide whether to add it to cpupool0.
In case the added cpu is not the last sibling to be onlined this test
is wrong as it only checks for all online siblings to be free. The
test should include the check for the number of siblings having
reached the scheduling granularity of cpupool0, too.

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