sched: populate cpupool0 only after all cpus are up
authorJuergen Gross <jgross@suse.com>
Tue, 17 Sep 2019 14:09:50 +0000 (16:09 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 17 Sep 2019 14:09:50 +0000 (16:09 +0200)
commitb0000b128adb07f4107c6e324d32ab025a73a6c8
tree886e413740d1e89359ab28558ded1cb8d43f8f33
parent6e0fc1c5114994ba6e671c82b91411dd835ae2b9
sched: populate cpupool0 only after all cpus are up

Simplify cpupool initialization by populating cpupool0 with cpus only
after all cpus are up. This avoids having to call the cpu notifier
directly for cpu 0.

With that in place there is no need to create cpupool0 earlier, so
do that just before assigning the cpus. Initialize free cpus with all
online cpus at that time in order to be able to add the cpu notifier
late, too.

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