Skip to contentSkip to conversation

x86: don't read maxlvt before checking if APIC is mapped

PATCH New Chuck Ebbert 1 participant 1 message May 20, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: don't read maxlvt before checking if APIC is mapped

x86: don't read maxlvt before checking if APIC is mapped

A check for unmapped apic was added before reading maxlvt but the early read of maxlvt wasn't removed.

arch/x86/kernel/apic_64.c +1 -1
Index: linux-2.6.25.noarch/arch/x86/kernel/apic_64.c
===================================================================
@@ -524,7 +524,7 @@ int setup_profiling_timer(unsigned int m
  */
 void clear_local_APIC(void)
 {
-	int maxlvt = lapic_get_maxlvt();
+	int maxlvt;
 	u32 v;
 
 	/* APIC hasn't been mapped yet */