From: Pavel Machek <pavel@suse.cz>
To: Willy TARREAU <willy@w.ods.org>
Cc: marcelo@conectiva.com.br, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] APM fix for 2.4.20pre1
Date: Mon, 20 Aug 2001 20:45:33 +0000 [thread overview]
Message-ID: <20010820204533.A169@toy.ucw.cz> (raw)
In-Reply-To: <20020806134328.GA587@pcw.home.local>; from willy@w.ods.org on Tue, Aug 06, 2002 at 03:43:28PM +0200
Hi!
> @@ -897,10 +889,11 @@
> */
> #ifdef CONFIG_SMP
> /* Some bioses don't like being called from CPU != 0 */
> - while (cpu_number_map(smp_processor_id()) != 0) {
> - kernel_thread(apm_magic, NULL,
> - CLONE_FS | CLONE_FILES | CLONE_SIGHAND | SIGCHLD);
> + if (cpu_number_map(smp_processor_id()) != 0) {
> + current->cpus_allowed = 1;
> schedule();
> + if (unlikely(cpu_number_map(smp_processor_id()) != 0))
> + BUG();
BUG_ON()?
Pavel
--
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.
next prev parent reply other threads:[~2002-08-19 20:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-06 13:43 Willy TARREAU
2001-08-20 20:45 ` Pavel Machek [this message]
2002-08-06 16:07 ` Alan Cox
2002-08-06 13:59 ` Marcelo Tosatti
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=20010820204533.A169@toy.ucw.cz \
--to=pavel@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
--cc=willy@w.ods.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®