summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/processor.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge2009-01-30 09:47:54 +0100
committerTejun Heo2009-01-31 06:28:54 +0100
commit11e3a840cd5b731cdd8f6f956dfae78a8046d09c (patch)
treebf92ad6319e658d00994a846a044874672942d15 /arch/x86/include/asm/processor.h
parentx86: pass in cpu number to switch_to_new_gdt() (diff)
downloadkernel-qcow2-linux-11e3a840cd5b731cdd8f6f956dfae78a8046d09c.tar.gz
kernel-qcow2-linux-11e3a840cd5b731cdd8f6f956dfae78a8046d09c.tar.xz
kernel-qcow2-linux-11e3a840cd5b731cdd8f6f956dfae78a8046d09c.zip
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>
Diffstat (limited to 'arch/x86/include/asm/processor.h')
-rw-r--r--arch/x86/include/asm/processor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index 1c25eb69ea86..656d02ea509b 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -769,6 +769,7 @@ extern struct desc_ptr early_gdt_descr;
extern void cpu_set_gdt(int);
extern void switch_to_new_gdt(int);
+extern void load_percpu_segment(int);
extern void cpu_init(void);
static inline unsigned long get_debugctlmsr(void)