]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/genx2apic_phys.c
x86: use x2apic id reported by cpuid during topology discovery
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / genx2apic_phys.c
index 3229c68aedd43f87deac13ac3c6fd823e5087996..e2401ab0c46e01c6b25dcdd92ff9a0955874ab13 100644 (file)
@@ -118,14 +118,9 @@ static unsigned long set_apic_id(unsigned int id)
        return x;
 }
 
-static unsigned int x2apic_read_id(void)
-{
-       return apic_read(APIC_ID);
-}
-
 static unsigned int phys_pkg_id(int index_msb)
 {
-       return x2apic_read_id() >> index_msb;
+       return current_cpu_data.initial_apicid >> index_msb;
 }
 
 void x2apic_send_IPI_self(int vector)