Re: [PATCH] pm_ops: add irq enable/disable hooks

Johannes Berg
2007-04-05T23:28:57Z

[-- Attachment #1.1: Type: text/plain, Size: 518 bytes --]

On Fri, 2007-04-06 at 01:30 +0200, Rafael J. Wysocki wrote:

> Well is this possible to do something like
>
> if (pm_ops->do_something_before_disabling_irqs)
> pm_ops->do_something_before_disabling_irqs()
> local_irq_save(flags);
> if (pm_ops->do_something_after_disabling_irqs)
> pm_ops->do_something_after_disabling_irqs()
>
> and analogously for enabling the IRQs?

Ultimately yes, but is it worth the added complexity? Somebody mucking
with pm_ops has to know what he's doing anyway.

johannes

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]