Commit 40efa147 authored by William Lee Irwin III's avatar William Lee Irwin III Committed by Linus Torvalds

[PATCH] sched: sparc32 fixes

Fix up sparc32 properly.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 21d3dc9c
......@@ -201,7 +201,7 @@ void __init smp4d_boot_cpus(void)
int no;
/* Cook up an idler for this guy. */
p = fork_idle(p, cpu);
p = fork_idle(i);
cpucount++;
current_set[i] = p->thread_info;
for (no = 0; !cpu_find_by_instance(no, NULL, &mid)
......
......@@ -173,18 +173,9 @@ void __init smp4m_boot_cpus(void)
int timeout;
/* Cook up an idler for this guy. */
kernel_thread(start_secondary, NULL, CLONE_IDLETASK);
p = fork_idle(i);
cpucount++;
p = prev_task(&init_task);
init_idle(p, i);
current_set[i] = p->thread_info;
unhash_process(p);
/* See trampoline.S for details... */
entry += ((i-1) * 3);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment