]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/genapic_flat_64.c
x86: add testcases for RODATA and NX protections/attributes
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / genapic_flat_64.c
index ecb01eefdd27b4b63c14352f0fff569ef9d60eca..07352b74bda6dfaac343ef5caa5674c6fde77a9e 100644 (file)
@@ -52,7 +52,6 @@ static void flat_init_apic_ldr(void)
 
        num = smp_processor_id();
        id = 1UL << num;
-       x86_cpu_to_log_apicid[num] = id;
        apic_write(APIC_DFR, APIC_DFR_FLAT);
        val = apic_read(APIC_LDR) & ~APIC_LDR_MASK;
        val |= SET_APIC_LOGICAL_ID(id);
@@ -173,7 +172,7 @@ static unsigned int physflat_cpu_mask_to_apicid(cpumask_t cpumask)
         */
        cpu = first_cpu(cpumask);
        if ((unsigned)cpu < NR_CPUS)
-               return x86_cpu_to_apicid[cpu];
+               return per_cpu(x86_cpu_to_apicid, cpu);
        else
                return BAD_APICID;
 }