x86: split loading percpu segments from loading gdt
commit11e3a840cd5b731cdd8f6f956dfae78a8046d09c
authorJeremy Fitzhardinge <jeremy@goop.org>
Fri, 30 Jan 2009 08:47:54 +0000 (30 17:47 +0900)
committerTejun Heo <tj@kernel.org>
Sat, 31 Jan 2009 05:28:54 +0000 (31 14:28 +0900)
treebf92ad6319e658d00994a846a044874672942d15
parent552be871e67ff577ed36beb2f53d078b42304739
x86: split loading percpu segments from loading gdt

Impact: split out a function, no functional change

Xen needs to be able to access percpu data from very early on.  For
various reasons, it cannot also load the gdt at that time.   It does,
however, have a pefectly functional gdt at that point, so there's no
pressing need to reload the gdt.

Split the function to load the segment registers off, so Xen can call
it directly.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/common.c