sh: 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> Acked-by: Paul Mundt <lethal@linux-sh.org> Link: http://lkml.kernel.org/r/20120420124557.855203626@linutronix.de
This commit is contained in:
@@ -220,22 +220,10 @@ extern struct {
|
||||
void *thread_info;
|
||||
} stack_start;
|
||||
|
||||
int __cpuinit __cpu_up(unsigned int cpu, struct task_struct *tidle)
|
||||
int __cpuinit __cpu_up(unsigned int cpu, struct task_struct *tsk)
|
||||
{
|
||||
struct task_struct *tsk;
|
||||
unsigned long timeout;
|
||||
|
||||
tsk = cpu_data[cpu].idle;
|
||||
if (!tsk) {
|
||||
tsk = fork_idle(cpu);
|
||||
if (IS_ERR(tsk)) {
|
||||
pr_err("Failed forking idle task for cpu %d\n", cpu);
|
||||
return PTR_ERR(tsk);
|
||||
}
|
||||
|
||||
cpu_data[cpu].idle = tsk;
|
||||
}
|
||||
|
||||
per_cpu(cpu_state, cpu) = CPU_UP_PREPARE;
|
||||
|
||||
/* Fill in data in head.S for secondary cpus */
|
||||
|
Reference in New Issue
Block a user