x86: pass in cpu number to switch_to_new_gdt()
authorBrian Gerst <brgerst@gmail.com>
Fri, 30 Jan 2009 08:47:53 +0000 (17:47 +0900)
committerTejun Heo <tj@kernel.org>
Sat, 31 Jan 2009 05:28:50 +0000 (14:28 +0900)
commit552be871e67ff577ed36beb2f53d078b42304739
treefa8a1160674f319db5c9dfe9360e22fb44ade300
parent2749ebe320ff9f77548d10fcc0a3464ac21c8e58
x86: pass in cpu number to switch_to_new_gdt()

Impact: cleanup, prepare for xen boot fix.

Xen needs to call this function very early to setup the GDT and
per-cpu segments.  Remove the call to smp_processor_id() and just
pass in the cpu number.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/setup_percpu.c
arch/x86/kernel/smpboot.c
arch/x86/mach-voyager/voyager_smp.c