introduce a cpumask with all bits set
authorJuergen Gross <jgross@suse.com>
Thu, 14 Mar 2019 15:42:05 +0000 (16:42 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 14 Mar 2019 15:42:05 +0000 (16:42 +0100)
commit996980ef869585f2878bfede23c6bc75d1fd12c1
tree32765859dc972205a4a3ad0774d9578dcfb7b41d
parent2455983ac4c03dae33b330c98e38e447478416d6
introduce a cpumask with all bits set

There are several places in Xen allocating a cpumask on the stack and
setting all bits in it just to use it as an initial mask for allowing
all cpus.

Save the stack space and omit the need for runtime initialization by
defining a globally accessible cpumask_all variable.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/io_apic.c
xen/common/cpu.c
xen/common/schedule.c
xen/include/xen/cpumask.h