Re: 2.4.19-ac1 and later: kernel BUG in apm.c:899 (SMP, apm=power-off)

From: Alan Cox (
Date: Mon Aug 05 2002 - 08:22:07 EST

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;

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

in that file

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:27 EST