diff options
Diffstat (limited to 'arch/i386/kernel/smpboot.c')
-rw-r--r-- | arch/i386/kernel/smpboot.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/i386/kernel/smpboot.c b/arch/i386/kernel/smpboot.c index f79b6233db78..7c1dbef399cd 100644 --- a/arch/i386/kernel/smpboot.c +++ b/arch/i386/kernel/smpboot.c | |||
@@ -1177,18 +1177,6 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus) | |||
1177 | smp_boot_cpus(max_cpus); | 1177 | smp_boot_cpus(max_cpus); |
1178 | } | 1178 | } |
1179 | 1179 | ||
1180 | /* Current gdt points %fs at the "master" per-cpu area: after this, | ||
1181 | * it's on the real one. */ | ||
1182 | static inline void switch_to_new_gdt(void) | ||
1183 | { | ||
1184 | struct Xgt_desc_struct gdt_descr; | ||
1185 | |||
1186 | gdt_descr.address = (long)get_cpu_gdt_table(smp_processor_id()); | ||
1187 | gdt_descr.size = GDT_SIZE - 1; | ||
1188 | load_gdt(&gdt_descr); | ||
1189 | asm("mov %0, %%fs" : : "r" (__KERNEL_PERCPU) : "memory"); | ||
1190 | } | ||
1191 | |||
1192 | void __init native_smp_prepare_boot_cpu(void) | 1180 | void __init native_smp_prepare_boot_cpu(void) |
1193 | { | 1181 | { |
1194 | unsigned int cpu = smp_processor_id(); | 1182 | unsigned int cpu = smp_processor_id(); |