diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-04-20 09:05:56 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2012-04-26 06:06:12 -0400 |
commit | f0a2bc7e54bb51f64d4c2cd5942ba6018a13d762 (patch) | |
tree | 63f4a4d8e6a11e09996e631d884aa6208bdefbbf /arch/sparc/kernel/sun4m_smp.c | |
parent | 2ec9415c71a1ddad969602e690a9c848b81256b3 (diff) |
sparc: Use generic idle thread allocation
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Tested-by: David S. Miller <davem@davemloft.net>
Link: http://lkml.kernel.org/r/20120420124558.055198736@linutronix.de
Diffstat (limited to 'arch/sparc/kernel/sun4m_smp.c')
-rw-r--r-- | arch/sparc/kernel/sun4m_smp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/sparc/kernel/sun4m_smp.c b/arch/sparc/kernel/sun4m_smp.c index 02db9a0412ce..579427359d4f 100644 --- a/arch/sparc/kernel/sun4m_smp.c +++ b/arch/sparc/kernel/sun4m_smp.c | |||
@@ -91,18 +91,15 @@ void __init smp4m_boot_cpus(void) | |||
91 | local_flush_cache_all(); | 91 | local_flush_cache_all(); |
92 | } | 92 | } |
93 | 93 | ||
94 | int __cpuinit smp4m_boot_one_cpu(int i) | 94 | int __cpuinit smp4m_boot_one_cpu(int i, struct task_struct *idle) |
95 | { | 95 | { |
96 | unsigned long *entry = &sun4m_cpu_startup; | 96 | unsigned long *entry = &sun4m_cpu_startup; |
97 | struct task_struct *p; | ||
98 | int timeout; | 97 | int timeout; |
99 | int cpu_node; | 98 | int cpu_node; |
100 | 99 | ||
101 | cpu_find_by_mid(i, &cpu_node); | 100 | cpu_find_by_mid(i, &cpu_node); |
101 | current_set[i] = task_thread_info(idle); | ||
102 | 102 | ||
103 | /* Cook up an idler for this guy. */ | ||
104 | p = fork_idle(i); | ||
105 | current_set[i] = task_thread_info(p); | ||
106 | /* See trampoline.S for details... */ | 103 | /* See trampoline.S for details... */ |
107 | entry += ((i - 1) * 3); | 104 | entry += ((i - 1) * 3); |
108 | 105 | ||