Commit b8bbd139 authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds

[PATCH] Allow non zero boot cpu

A partitioned ppc64 machine can have a boot cpuid anywhere from 0 to 31.
With the non linear cpu changes in 2.5.24 we must set up the initial task
to start on the boot cpu. (since it isnt always 0 now)

With this patch I am able to boot on cpus other than 0. I also tested
discontiguous cpuids. So the non linear cpu stuff checks out OK.
parent 7a11b4d8
...@@ -1706,6 +1706,7 @@ void __init sched_init(void) ...@@ -1706,6 +1706,7 @@ void __init sched_init(void)
rq = this_rq(); rq = this_rq();
rq->curr = current; rq->curr = current;
rq->idle = current; rq->idle = current;
set_task_cpu(current, smp_processor_id());
wake_up_process(current); wake_up_process(current);
init_timervecs(); init_timervecs();
......
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