]> git.baikalelectronics.ru Git - kernel.git/commit
x86: split loading percpu segments from loading gdt
authorJeremy Fitzhardinge <jeremy@goop.org>
Fri, 30 Jan 2009 08:47:54 +0000 (17:47 +0900)
committerTejun Heo <tj@kernel.org>
Sat, 31 Jan 2009 05:28:54 +0000 (14:28 +0900)
commitf1947b708bbde4664791480121a03aa0e1b27b7f
treebf92ad6319e658d00994a846a044874672942d15
parent50c42f2bfac74eaebe0bd2bc22ffbcd8c0871d02
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