|
@@ -196,18 +196,11 @@ void __cpuinit start_secondary(void)
|
|
* maintains control until "cpu_online(cpu)" is set.
|
|
* maintains control until "cpu_online(cpu)" is set.
|
|
*/
|
|
*/
|
|
|
|
|
|
-int __cpuinit __cpu_up(unsigned int cpu, struct task_struct *tidle)
|
|
|
|
|
|
+int __cpuinit __cpu_up(unsigned int cpu, struct task_struct *idle)
|
|
{
|
|
{
|
|
- struct task_struct *idle;
|
|
|
|
- struct thread_info *thread;
|
|
|
|
|
|
+ struct thread_info *thread = (struct thread_info *)idle->stack;
|
|
void *stack_start;
|
|
void *stack_start;
|
|
|
|
|
|
- /* Create new init task for the CPU */
|
|
|
|
- idle = fork_idle(cpu);
|
|
|
|
- if (IS_ERR(idle))
|
|
|
|
- panic(KERN_ERR "fork_idle failed\n");
|
|
|
|
-
|
|
|
|
- thread = (struct thread_info *)idle->stack;
|
|
|
|
thread->cpu = cpu;
|
|
thread->cpu = cpu;
|
|
|
|
|
|
/* Boot to the head. */
|
|
/* Boot to the head. */
|