]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
x86/apic: remove redundant LVR read in init_bsp_APIC()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 9 Jan 2015 16:22:42 +0000 (17:22 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Jan 2015 16:22:42 +0000 (17:22 +0100)
'ver' became unused by c/s 0b964c0c7 "x86/LAPIC: drop support for
non-integrated APIC", which in turn makes the LVR read redundant.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/apic.c

index 1de693f102c2ffa7fed46808085df4059a7d651c..39cd9e5202ba64720837c176f87d5a6a116266d2 100644 (file)
@@ -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.
      */