]> xenbits.xensource.com Git - xen.git/commitdiff
x86/mach-apic: Drop apic_id_registered()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Nov 2024 18:27:24 +0000 (18:27 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 11 Nov 2024 15:25:38 +0000 (15:25 +0000)
It's an unnecessary wrapper.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/apic.c
xen/arch/x86/include/asm/mach-generic/mach_apic.h

index 254ab5d388dca833cded918649f4014814be6f61..9f3a374e9581c493ccda8d964035d406115479f1 100644 (file)
@@ -495,8 +495,7 @@ void setup_local_APIC(bool bsp)
     /*
      * Double-check whether this APIC is really registered.
      */
-    if (!apic_id_registered())
-        BUG();
+    BUG_ON(!physid_isset(get_apic_id(), phys_cpu_present_map));
 
     /*
      * Intel recommends to set DFR, LDR and TPR before enabling
index 50f39b72ccfb385c8644556335ac6146ec79804f..3cf58d5f6b90f9f34d37ccd9b48bd64a28ec3c16 100644 (file)
@@ -45,12 +45,6 @@ static inline int multi_timer_check(int apic, int irq)
  * really not sure why, since all local APICs should have distinct physical
  * IDs, and we need to know what they are.
  */
-static inline int apic_id_registered(void)
-{
-       return physid_isset(get_apic_id(),
-                           phys_cpu_present_map);
-}
-
 static inline void ioapic_phys_id_map(physid_mask_t *map)
 {
        *map = phys_cpu_present_map;