diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-22 22:53:20 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-28 23:43:42 -0500 |
commit | 18c26c27ae0abe82253cb2e2363df465dbbb657e (patch) | |
tree | b822ed3267443e0b4b05e852fb0d2b709b916c65 /arch | |
parent | 62e791c1b8ea481c72c299dee4f62c04aaef765c (diff) |
death to idle_regs()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/kernel/smpboot.c | 5 | ||||
-rw-r--r-- | arch/x86/include/asm/processor.h | 2 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 9 |
3 files changed, 0 insertions, 16 deletions
diff --git a/arch/ia64/kernel/smpboot.c b/arch/ia64/kernel/smpboot.c index 963d2db53bfa..6a368cb2043e 100644 --- a/arch/ia64/kernel/smpboot.c +++ b/arch/ia64/kernel/smpboot.c | |||
@@ -460,11 +460,6 @@ start_secondary (void *unused) | |||
460 | return 0; | 460 | return 0; |
461 | } | 461 | } |
462 | 462 | ||
463 | struct pt_regs * __cpuinit idle_regs(struct pt_regs *regs) | ||
464 | { | ||
465 | return NULL; | ||
466 | } | ||
467 | |||
468 | static int __cpuinit | 463 | static int __cpuinit |
469 | do_boot_cpu (int sapicid, int cpu, struct task_struct *idle) | 464 | do_boot_cpu (int sapicid, int cpu, struct task_struct *idle) |
470 | { | 465 | { |
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index ad1fc8511674..92f48a5a6b2e 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h | |||
@@ -178,8 +178,6 @@ static inline int hlt_works(int cpu) | |||
178 | 178 | ||
179 | extern void cpu_detect(struct cpuinfo_x86 *c); | 179 | extern void cpu_detect(struct cpuinfo_x86 *c); |
180 | 180 | ||
181 | extern struct pt_regs *idle_regs(struct pt_regs *); | ||
182 | |||
183 | extern void early_cpu_init(void); | 181 | extern void early_cpu_init(void); |
184 | extern void identify_boot_cpu(void); | 182 | extern void identify_boot_cpu(void); |
185 | extern void identify_secondary_cpu(struct cpuinfo_x86 *); | 183 | extern void identify_secondary_cpu(struct cpuinfo_x86 *); |
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 7505f7b13e71..6a6432cf89de 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -1173,15 +1173,6 @@ DEFINE_PER_CPU(struct task_struct *, fpu_owner_task); | |||
1173 | DEFINE_PER_CPU_ALIGNED(struct stack_canary, stack_canary); | 1173 | DEFINE_PER_CPU_ALIGNED(struct stack_canary, stack_canary); |
1174 | #endif | 1174 | #endif |
1175 | 1175 | ||
1176 | /* Make sure %fs and %gs are initialized properly in idle threads */ | ||
1177 | struct pt_regs * __cpuinit idle_regs(struct pt_regs *regs) | ||
1178 | { | ||
1179 | memset(regs, 0, sizeof(struct pt_regs)); | ||
1180 | regs->fs = __KERNEL_PERCPU; | ||
1181 | regs->gs = __KERNEL_STACK_CANARY; | ||
1182 | |||
1183 | return regs; | ||
1184 | } | ||
1185 | #endif /* CONFIG_X86_64 */ | 1176 | #endif /* CONFIG_X86_64 */ |
1186 | 1177 | ||
1187 | /* | 1178 | /* |