Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340356
b: refs/heads/master
c: 18c26c2
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Nov 29, 2012
1 parent d4b5bbb commit b35890c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 62e791c1b8ea481c72c299dee4f62c04aaef765c
refs/heads/master: 18c26c27ae0abe82253cb2e2363df465dbbb657e
5 changes: 0 additions & 5 deletions trunk/arch/ia64/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,11 +460,6 @@ start_secondary (void *unused)
return 0;
}

struct pt_regs * __cpuinit idle_regs(struct pt_regs *regs)
{
return NULL;
}

static int __cpuinit
do_boot_cpu (int sapicid, int cpu, struct task_struct *idle)
{
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/x86/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ static inline int hlt_works(int cpu)

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 identify_boot_cpu(void);
extern void identify_secondary_cpu(struct cpuinfo_x86 *);
Expand Down
9 changes: 0 additions & 9 deletions trunk/arch/x86/kernel/cpu/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1173,15 +1173,6 @@ DEFINE_PER_CPU(struct task_struct *, fpu_owner_task);
DEFINE_PER_CPU_ALIGNED(struct stack_canary, stack_canary);
#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 */

/*
Expand Down
6 changes: 0 additions & 6 deletions trunk/kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -1514,12 +1514,6 @@ static struct task_struct *copy_process(unsigned long clone_flags,
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)
{
enum pid_type type;
Expand Down

0 comments on commit b35890c

Please sign in to comment.