x86/genapic: remove indirection from genapic hook accesses
authorJan Beulich <jbeulich@suse.com>
Thu, 8 Nov 2018 14:59:14 +0000 (15:59 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 8 Nov 2018 14:59:14 +0000 (15:59 +0100)
commitc0bb0d88436581f589946b3f76d19fc26546ff66
treef4bc3baefecbc94384da141fa00ce094cde56774
parent388c55bfad2522009f88f165f74b2fc5ed4f9e94
x86/genapic: remove indirection from genapic hook accesses

Instead of loading a pointer at each use site, have a single runtime
instance of struct genapic, copying into it from the individual
instances. The individual instances can this way also be moved to .init
(also adjust apic_probe[] at this occasion).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/apic.c
xen/arch/x86/genapic/bigsmp.c
xen/arch/x86/genapic/default.c
xen/arch/x86/genapic/probe.c
xen/arch/x86/genapic/x2apic.c
xen/arch/x86/mpparse.c
xen/arch/x86/smp.c
xen/include/asm-x86/genapic.h
xen/include/asm-x86/mach-generic/mach_apic.h