Re: [PATCH] genirq: ensure IRQs are lazy disabled before suspend

From: Kevin Hilman
Date: Thu May 07 2009 - 12:19:44 EST


Ingo Molnar <mingo@xxxxxxx> writes:

> * Kevin Hilman <khilman@xxxxxxxxxxxxxxxxxxx> wrote:
>

[...]

>> --- a/kernel/irq/manage.c
>> +++ b/kernel/irq/manage.c
>> @@ -190,6 +190,11 @@ void __disable_irq(struct irq_desc *desc, unsigned int irq, bool suspend)
>> if (!desc->action || (desc->action->flags & IRQF_TIMER))
>> return;
>> desc->status |= IRQ_SUSPENDED;
>> +
>> + /* Lazy disable: handles case where lazy disable in
>> + * handler doesn't happen before suspend. */
>> + if (desc->status & IRQ_DISABLED)
>> + desc->chip->mask(irq);
>
> Please look at the rest of the file and follow the multi-line
> comment style that is used in the 29 multi-line comment instances
> there. (which is also what Documentation/CodingStyle specifies)

Doh, sorry. Updated patch below.

Kevin