Skip to content

Commit 18c26c2

Browse files
author
Al Viro
committed
death to idle_regs()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 62e791c commit 18c26c2

4 files changed

Lines changed: 0 additions & 22 deletions

File tree

‎arch/ia64/kernel/smpboot.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -460,11 +460,6 @@ start_secondary (void *unused)
460460
return 0;
461461
}
462462

463-
struct pt_regs * __cpuinit idle_regs(struct pt_regs *regs)
464-
{
465-
return NULL;
466-
}
467-
468463
static int __cpuinit
469464
do_boot_cpu (int sapicid, int cpu, struct task_struct *idle)
470465
{

‎arch/x86/include/asm/processor.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,6 @@ static inline int hlt_works(int cpu)
178178

179179
extern void cpu_detect(struct cpuinfo_x86 *c);
180180

181-
extern struct pt_regs *idle_regs(struct pt_regs *);
182-
183181
extern void early_cpu_init(void);
184182
extern void identify_boot_cpu(void);
185183
extern void identify_secondary_cpu(struct cpuinfo_x86 *);

‎arch/x86/kernel/cpu/common.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,15 +1173,6 @@ DEFINE_PER_CPU(struct task_struct *, fpu_owner_task);
11731173
DEFINE_PER_CPU_ALIGNED(struct stack_canary, stack_canary);
11741174
#endif
11751175

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-
}
11851176
#endif /* CONFIG_X86_64 */
11861177

11871178
/*

‎kernel/fork.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,12 +1514,6 @@ static struct task_struct *copy_process(unsigned long clone_flags,
15141514
return ERR_PTR(retval);
15151515
}
15161516

1517-
noinline struct pt_regs * __cpuinit __attribute__((weak)) idle_regs(struct pt_regs *regs)
1518-
{
1519-
memset(regs, 0, sizeof(struct pt_regs));
1520-
return regs;
1521-
}
1522-
15231517
static inline void init_idle_pids(struct pid_link *links)
15241518
{
15251519
enum pid_type type;

0 commit comments

Comments
 (0)