|
@@ -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 */
|