Re: [ACPI] Re: [BUG] test9 ACPI bad: scheduling while atomic!

From: Nate Lawson
Date: Mon Oct 27 2003 - 15:24:56 EST


On Mon, 27 Oct 2003, Noah J. Misch wrote:
> > are shown below. It looks like the AML associated with the AC event is
> > trying to do an AML_SLEEP_OP. Since this is called while in the
> > interrupt handler, and the eventual call to acpi_os_sleep() sets the
> > current state to interruptible... boom. One simple, but terribly ugly,
> > workaround is to make acpi_os_sleep() call acpi_os_stall() if
> > in_atomic() is true (patch below). Hopefully there's a better way to
> > fix this. Somehow the interpreter really needs to drop interrupt
> > context before it starts making calls like this. Thanks,

I thought a change was committed to address this, calling Stall for up to
255 us and Sleep for more than that.

-Nate
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/