Commit 18c26c27 authored by Al Viro's avatar Al Viro

death to idle_regs()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 62e791c1
...@@ -460,11 +460,6 @@ start_secondary (void *unused) ...@@ -460,11 +460,6 @@ start_secondary (void *unused)
return 0; return 0;
} }
struct pt_regs * __cpuinit idle_regs(struct pt_regs *regs)
{
return NULL;
}
static int __cpuinit static int __cpuinit
do_boot_cpu (int sapicid, int cpu, struct task_struct *idle) do_boot_cpu (int sapicid, int cpu, struct task_struct *idle)
{ {
......
...@@ -178,8 +178,6 @@ static inline int hlt_works(int cpu) ...@@ -178,8 +178,6 @@ static inline int hlt_works(int cpu)
extern void cpu_detect(struct cpuinfo_x86 *c); extern void cpu_detect(struct cpuinfo_x86 *c);
extern struct pt_regs *idle_regs(struct pt_regs *);
extern void early_cpu_init(void); extern void early_cpu_init(void);
extern void identify_boot_cpu(void); extern void identify_boot_cpu(void);
extern void identify_secondary_cpu(struct cpuinfo_x86 *); extern void identify_secondary_cpu(struct cpuinfo_x86 *);
......
...@@ -1173,15 +1173,6 @@ DEFINE_PER_CPU(struct task_struct *, fpu_owner_task); ...@@ -1173,15 +1173,6 @@ DEFINE_PER_CPU(struct task_struct *, fpu_owner_task);
DEFINE_PER_CPU_ALIGNED(struct stack_canary, stack_canary); DEFINE_PER_CPU_ALIGNED(struct stack_canary, stack_canary);
#endif #endif
/* Make sure %fs and %gs are initialized properly in idle threads */
struct pt_regs * __cpuinit idle_regs(struct pt_regs *regs)
{
memset(regs, 0, sizeof(struct pt_regs));
regs->fs = __KERNEL_PERCPU;
regs->gs = __KERNEL_STACK_CANARY;
return regs;
}
#endif /* CONFIG_X86_64 */ #endif /* CONFIG_X86_64 */
/* /*
......
...@@ -1514,12 +1514,6 @@ static struct task_struct *copy_process(unsigned long clone_flags, ...@@ -1514,12 +1514,6 @@ static struct task_struct *copy_process(unsigned long clone_flags,
return ERR_PTR(retval); return ERR_PTR(retval);
} }
noinline struct pt_regs * __cpuinit __attribute__((weak)) idle_regs(struct pt_regs *regs)
{
memset(regs, 0, sizeof(struct pt_regs));
return regs;
}
static inline void init_idle_pids(struct pid_link *links) static inline void init_idle_pids(struct pid_link *links)
{ {
enum pid_type type; enum pid_type type;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment