mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: thunder7@xs4all.nl
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.19-ac1 and later: kernel BUG in apm.c:899 (SMP, apm=power-off)
Date: 05 Aug 2002 14:22:07 +0100	[thread overview]
Message-ID: <1028553727.18156.34.camel@irongate.swansea.linux.org.uk> (raw)
In-Reply-To: <20020805053156.GA476@middle.of.nowhere>

On Mon, 2002-08-05 at 06:31, Jurriaan wrote:
> Since 2.4.19-ac1 I occasionally (like 1 in 3 times) see an Oops while
> shutting down, containing the line
> 
> kernel BUG in apm.c:899
> 
> This is an Abit VP6 dual board, with a via chipset. Below you'll find
> lspci, (limited) dmesg, and .config information.

Basically its oopsing because it was about to make an APM call on a
processor other than CPU#0 (physical id), it set the cpus_allowed mask
to CPU#0 only and then rescheduled but ended up on a CPU that was not
CPU#0. Thats because its not making the right and proper calls for the
O(1) scheduler - Willy's patch I merged is right - but not for -ac.

I'll fix that in -ac5.

It should be enough to swap

		current->cpus_allowed = 1;

with
		set_cpus_allowed(current, 1 << cpu_logical_map(0));

		
in that file


      reply	other threads:[~2002-08-05 11:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-05  5:31 Jurriaan
2002-08-05 13:22 ` Alan Cox [this message]

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=1028553727.18156.34.camel@irongate.swansea.linux.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thunder7@xs4all.nl \
    /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®