mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "D.J. Barrow" <barrow_dj@yahoo.com>
To: Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: SMP race condition on startup with patch clarification
Date: Tue, 30 Apr 2002 07:26:57 -0700 (PDT)	[thread overview]
Message-ID: <20020430142657.17875.qmail@web10407.mail.yahoo.com> (raw)

This could also be done by
leaving init_idle as an init function

& doing a check in all 
the cpu_idle functions in arch/process.c

#ifdef CONFIG_SMP
if(smp_processor_id()!=0)
#endif
	init_idle();

This would save it attempting to
call the init_idle function 
the second time on the boot processor after
it has been freed by free_initmem & avoid the crash.

This patch however would be much bigger
& affect all the arches & probably would
upset more people.


=====
D.J. Barrow Linux kernel developer
eMail: dj_barrow@ariasoft.ie 
Home: +353-22-47196.
Work: +353-91-758353

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

                 reply	other threads:[~2002-04-30 14:27 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=20020430142657.17875.qmail@web10407.mail.yahoo.com \
    --to=barrow_dj@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /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®