aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/smpcommon.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/smpcommon.c')
-rw-r--r--arch/x86/kernel/smpcommon.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/x86/kernel/smpcommon.c b/arch/x86/kernel/smpcommon.c
deleted file mode 100644
index 5ec29a1a8465..000000000000
--- a/arch/x86/kernel/smpcommon.c
+++ /dev/null
@@ -1,25 +0,0 @@
1/*
2 * SMP stuff which is common to all sub-architectures.
3 */
4#include <linux/module.h>
5#include <asm/smp.h>
6#include <asm/sections.h>
7
8#ifdef CONFIG_X86_32
9/*
10 * Initialize the CPU's GDT. This is either the boot CPU doing itself
11 * (still using the master per-cpu area), or a CPU doing it for a
12 * secondary which will soon come up.
13 */
14__cpuinit void init_gdt(int cpu)
15{
16 struct desc_struct gdt;
17
18 pack_descriptor(&gdt, __per_cpu_offset[cpu], 0xFFFFF,
19 0x2 | DESCTYPE_S, 0x8);
20 gdt.s = 1;
21
22 write_gdt_entry(get_cpu_gdt_table(cpu),
23 GDT_ENTRY_PERCPU, &gdt, DESCTYPE_S);
24}
25#endif