From: Anton Blanchard <anton@samba.org>
To: linux-kernel@vger.kernel.org
Cc: rusty@rustcorp.com.au, mingo@elte.hu
Subject: [PATCH] Allow non zero boot cpu
Date: Sun, 23 Jun 2002 15:09:50 -0500 [thread overview]
Message-ID: <20020623200950.GA20641@krispykreme> (raw)
Hi,
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:
# cat /proc/cpuinfo
processor : 2
cpu : RS64-IV (sstar)
clock : 601MHz
revision : 0.0
processor : 4
cpu : RS64-IV (sstar)
clock : 601MHz
revision : 0.0
processor : 6
cpu : RS64-IV (sstar)
clock : 601MHz
revision : 0.0
timebase : 601583219
machine : CHRP IBM,7025-F80
So the non linear cpu stuff checks out OK. Nice work Rusty!
Anton
===== kernel/sched.c 1.101 vs edited =====
--- 1.101/kernel/sched.c Thu Jun 20 23:25:50 2002
+++ edited/kernel/sched.c Mon Jun 24 05:14:11 2002
@@ -1687,6 +1688,7 @@
rq = this_rq();
rq->curr = current;
rq->idle = current;
+ set_task_cpu(current, smp_processor_id());
wake_up_process(current);
init_timervecs();
reply other threads:[~2002-06-23 20:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020623200950.GA20641@krispykreme \
--to=anton@samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox