diff options
author | Shai Fultheim <shai@scalex86.org> | 2004-08-22 22:42:10 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-22 22:42:10 -0700 |
commit | d987bdff0da6166a31ab1af47b225590915579d3 (patch) | |
tree | 9c4d87219f626dc2796902f4b8c8bf87d00bb173 /include | |
parent | cf0cf37deec381ff17883ba9a7b326d613c583e8 (diff) | |
download | history-d987bdff0da6166a31ab1af47b225590915579d3.tar.gz |
[PATCH] percpu: init_tss
Use the percpu infrastructure rather than open-coded array[NR_CPUS].
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-i386/processor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h index 76ca7ea957a2b8..b542bd9d5a2b7c 100644 --- a/include/asm-i386/processor.h +++ b/include/asm-i386/processor.h @@ -19,6 +19,7 @@ #include <linux/cache.h> #include <linux/config.h> #include <linux/threads.h> +#include <asm/percpu.h> /* flag for disabling the tsc */ extern int tsc_disable; @@ -84,8 +85,8 @@ struct cpuinfo_x86 { extern struct cpuinfo_x86 boot_cpu_data; extern struct cpuinfo_x86 new_cpu_data; -extern struct tss_struct init_tss[NR_CPUS]; extern struct tss_struct doublefault_tss; +DECLARE_PER_CPU(struct tss_struct, init_tss); #ifdef CONFIG_SMP extern struct cpuinfo_x86 cpu_data[]; @@ -441,7 +442,6 @@ struct thread_struct { #define INIT_TSS { \ .esp0 = sizeof(init_stack) + (long)&init_stack, \ .ss0 = __KERNEL_DS, \ - .esp1 = sizeof(init_tss[0]) + (long)&init_tss[0], \ .ss1 = __KERNEL_CS, \ .ldt = GDT_ENTRY_LDT, \ .io_bitmap_base = offsetof(struct tss_struct,io_bitmap), \ |