diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2023-08-08 15:04:02 -0700 |
---|---|---|
committer | Dave Hansen <dave.hansen@linux.intel.com> | 2023-08-09 11:58:27 -0700 |
commit | 5a3a46bd161d76f117b030ece0eb0de0dfe3ba59 (patch) | |
tree | b930b5184acd96afcc6d89320809192bb5caac5a /arch/x86/xen/apic.c | |
parent | 9d87f5b67e100f253aed995a31fedff2983b7639 (diff) | |
download | linux-5a3a46bd161d76f117b030ece0eb0de0dfe3ba59.tar.gz linux-5a3a46bd161d76f117b030ece0eb0de0dfe3ba59.tar.bz2 linux-5a3a46bd161d76f117b030ece0eb0de0dfe3ba59.zip |
x86/apic: Mop up apic::apic_id_registered()
Really not a hotpath and again no reason for having a gazillion of empty
callbacks returning 1. Make it return bool and provide one shared
implementation for the remaining users.
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)
Diffstat (limited to 'arch/x86/xen/apic.c')
-rw-r--r-- | arch/x86/xen/apic.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/xen/apic.c b/arch/x86/xen/apic.c index 4a27f92b51d1..f1cd7f2b3ac0 100644 --- a/arch/x86/xen/apic.c +++ b/arch/x86/xen/apic.c @@ -115,11 +115,6 @@ static int xen_id_always_valid(u32 apicid) return 1; } -static int xen_id_always_registered(void) -{ - return 1; -} - static int xen_phys_pkg_id(int initial_apic_id, int index_msb) { return initial_apic_id >> index_msb; @@ -142,7 +137,6 @@ static struct apic xen_pv_apic = { .probe = xen_apic_probe_pv, .acpi_madt_oem_check = xen_madt_oem_check, .apic_id_valid = xen_id_always_valid, - .apic_id_registered = xen_id_always_registered, /* .delivery_mode and .dest_mode_logical not used by XENPV */ |