]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
death to idle_regs()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 23 Oct 2012 02:53:20 +0000 (22:53 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 29 Nov 2012 04:43:42 +0000 (23:43 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/ia64/kernel/smpboot.c
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/common.c
kernel/fork.c

index 963d2db53bfa55a9d50932b3301300d3411c3115..6a368cb2043ee9ae82388b3856fe6b0e3a7d304f 100644 (file)
@@ -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)
 {
index ad1fc85116743d677ff5b050e7226c2988a5e559..92f48a5a6b2e1bf5b1fedddf947c458dbdddfd63 100644 (file)
@@ -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 *);
index 7505f7b13e71a90d90b403c8ef34dc0558f6de29..6a6432cf89de26519aa8ef20f95cddf841d8b8a8 100644 (file)
@@ -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 */
 
 /*
index fa24a78b94f2cad9fdae4fc135b5c0b7e5e4f13f..0e68b6686acb37c00ffb63ab62e3ed574d305e55 100644 (file)
@@ -1514,12 +1514,6 @@ fork_out:
        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;