]> 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 91c7526768ee8e0f934c7c7e7d8c1b987ad46112..07352b74bda6dfaac343ef5caa5674c6fde77a9e 100644 (file)
@@ -172,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;
 }