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
This commit is contained in:
@@ -91,18 +91,15 @@ void __init smp4m_boot_cpus(void)
|
||||
local_flush_cache_all();
|
||||
}
|
||||
|
||||
int __cpuinit smp4m_boot_one_cpu(int i)
|
||||
int __cpuinit smp4m_boot_one_cpu(int i, struct task_struct *idle)
|
||||
{
|
||||
unsigned long *entry = &sun4m_cpu_startup;
|
||||
struct task_struct *p;
|
||||
int timeout;
|
||||
int cpu_node;
|
||||
|
||||
cpu_find_by_mid(i, &cpu_node);
|
||||
current_set[i] = task_thread_info(idle);
|
||||
|
||||
/* Cook up an idler for this guy. */
|
||||
p = fork_idle(i);
|
||||
current_set[i] = task_thread_info(p);
|
||||
/* See trampoline.S for details... */
|
||||
entry += ((i - 1) * 3);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user