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/leon_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/leon_smp.c')
-rw-r--r-- | arch/sparc/kernel/leon_smp.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/sparc/kernel/leon_smp.c b/arch/sparc/kernel/leon_smp.c index 160cac9c4036..b34c93c351b6 100644 --- a/arch/sparc/kernel/leon_smp.c +++ b/arch/sparc/kernel/leon_smp.c | |||
@@ -204,16 +204,11 @@ void __init leon_boot_cpus(void) | |||
204 | 204 | ||
205 | } | 205 | } |
206 | 206 | ||
207 | int __cpuinit leon_boot_one_cpu(int i) | 207 | int __cpuinit leon_boot_one_cpu(int i, struct task_struct *idle) |
208 | { | 208 | { |
209 | |||
210 | struct task_struct *p; | ||
211 | int timeout; | 209 | int timeout; |
212 | 210 | ||
213 | /* Cook up an idler for this guy. */ | 211 | current_set[i] = task_thread_info(idle); |
214 | p = fork_idle(i); | ||
215 | |||
216 | current_set[i] = task_thread_info(p); | ||
217 | 212 | ||
218 | /* See trampoline.S:leon_smp_cpu_startup for details... | 213 | /* See trampoline.S:leon_smp_cpu_startup for details... |
219 | * Initialize the contexts table | 214 | * Initialize the contexts table |