x86: Replace cpu_2_logical_apicid[] with early percpu variable
authorTejun Heo <tj@kernel.org>
Sun, 23 Jan 2011 13:37:30 +0000 (14:37 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 28 Jan 2011 13:54:05 +0000 (14:54 +0100)
commit4c321ff8a01a95badf5d5403d80ca4e0ab07fce7
tree6fb9715b01c94988e20fa3ac2324c364854e6a79
parent1245e1668c6e52bee76a423f8fab3bfcdd6226ae
x86: Replace cpu_2_logical_apicid[] with early percpu variable

Unlike x86_64, on x86_32, the mapping from cpu to logical apicid
may vary depending on apic in use.  cpu_2_logical_apicid[] array
is used for this mapping.  Replace it with early percpu variable
x86_cpu_to_logical_apicid to make it better aligned with other
mappings.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: eric.dumazet@gmail.com
Cc: yinghai@kernel.org
Cc: brgerst@gmail.com
Cc: gorcunov@gmail.com
Cc: penberg@kernel.org
Cc: shaohui.zheng@intel.com
Cc: rientjes@google.com
LKML-Reference: <1295789862-25482-5-git-send-email-tj@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/apic.h
arch/x86/include/asm/smp.h
arch/x86/kernel/apic/apic.c
arch/x86/kernel/apic/es7000_32.c
arch/x86/kernel/apic/numaq_32.c
arch/x86/kernel/apic/summit_32.c
arch/x86/kernel/setup_percpu.c
arch/x86/kernel/smpboot.c