x86/apic: Get rid of apic_phys
authorThomas Gleixner <tglx@linutronix.de>
Tue, 8 Aug 2023 22:03:52 +0000 (15:03 -0700)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 9 Aug 2023 18:58:22 +0000 (11:58 -0700)
commit78c32000848c9a3af69e2431d17caed7b555e0ea
tree68de9cedab0fb22cc6a77db0efa940f2a75aa226
parentf52e2c3e96d949b229897dc234679553c179f6b2
x86/apic: Get rid of apic_phys

No need for an extra variable to find out whether the APIC has been mapped
or is accessible (X2APIC mode).

Provide an inline for this and check apic_mmio_base which is only set when
the local APIC has been mapped.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Tested-by: Juergen Gross <jgross@suse.com> # Xen PV (dom0 and unpriv. guest)
arch/x86/kernel/apic/apic.c