Re: PCI PM: Restore standard config registers of all devices early

From: Peter Zijlstra
Date: Tue Feb 03 2009 - 06:07:29 EST


On Tue, 2009-02-03 at 06:06 +0100, Ingo Molnar wrote:
>
> Mutexes should work just fine in irqs-off sections - they'll safely
> save/restore interrupts, even the debug variants.

mutex_lock() has might_sleep() which will generate a splat in atomic
contexts.

That said, afaik the acpi code uses semaphores.

--
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/