From: Richard Gooch <rgooch@ras.ucalgary.ca>
To: "Martin J. Bligh" <Martin.Bligh@us.ibm.com>
Cc: linux-kernel@vger.kernel.org,
Linus Torvalds <torvalds@transmeta.com>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
Andrew Morton <akpm@zip.com.au>
Subject: Re: [patch] Race between init_idle and reschedule_idle
Date: Sun, 30 Sep 2001 06:19:04 -0600 [thread overview]
Message-ID: <200109301219.f8UCJ4H16858@vindaloo.ras.ucalgary.ca> (raw)
In-Reply-To: <1076429074.1001803809@[10.10.1.2]>
In-Reply-To: <1076429074.1001803809@[10.10.1.2]>
Martin J. Bligh writes:
> Thanks to Alan Cox & Andrew Morton for showing me how to serialise
> the cpus to make the panic legible. The following patch holds back
> the boot cpu at the end of smp_init until all the secondarys have
> done init_idle:
One thing that bothers me about your patch is how it limits the number
of CPU's to the number of bits in an unsigned long. While I realise
there are other places that do the same (last time I looked), we
shouldn't be perpeturating these kinds of limitations.
I'd suggest you use an atomic_t instead. Increment for each CPU, and
decrement when each CPU is ready. Just test for 0 in your wait loop.
One less piece of code we have to overhaul later.
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
next prev parent reply other threads:[~2001-09-30 12:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-30 5:50 Martin J. Bligh
2001-09-30 12:19 ` Richard Gooch [this message]
2001-10-02 18:43 ` george anzinger
2001-10-09 13:12 ` Hubertus Franke
2001-10-09 15:56 ` Martin J. Bligh
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=200109301219.f8UCJ4H16858@vindaloo.ras.ucalgary.ca \
--to=rgooch@ras.ucalgary.ca \
--cc=Martin.Bligh@us.ibm.com \
--cc=akpm@zip.com.au \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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
all inboxes | Powered by JetHome®