Re: PCI PM: Restore standard config registers of all devices early
From: Ingo Molnar
Date: Tue Feb 03 2009 - 07:10:22 EST
* Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> wrote:
> 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.
even the might_sleep() should be OK with Linus's system_state change to the
suspend code:
void __might_sleep(char *file, int line)
{
#ifdef in_atomic
static unsigned long prev_jiffy; /* ratelimiting */
if ((!in_atomic() && !irqs_disabled()) ||
system_state != SYSTEM_RUNNING || oops_in_progress)
Ingo
--
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/