Skip to contentSkip to conversation

x86/apic: Remove redundant LVR read in init_bsp_APIC()

PATCH In review Andrew Cooper 2 participants 2 messages Jan 8, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/apic: Remove redundant LVR read in init_bsp_APIC()

'ver' became unused by c/s 0b964c0c7 "x86/LAPIC: drop support for non-integrated APIC", which in turn makes the LVR read redundant.

CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
---
 xen/arch/x86/apic.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
xen/arch/x86/apic.c +1 -4
index 1de693f..39cd9e5 100644
@@ -434,7 +434,7 @@ void __init sync_Arb_IDs(void)
  */
 void __init init_bsp_APIC(void)
 {
-    unsigned long value, ver;
+    unsigned long value;
 
     /*
      * Don't do the setup now if we have a SMP BIOS as the
@@ -443,9 +443,6 @@ void __init init_bsp_APIC(void)
     if (smp_found_config || !cpu_has_apic)
         return;
 
-    value = apic_read(APIC_LVR);
-    ver = GET_APIC_VERSION(value);
-    
     /*
      * Do not trust the local APIC being empty at bootup.
      */
Signature · 1 line
1.7.10.4