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

Johannes Berg
2007-04-06T21:59:27Z

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

On Fri, 2007-04-06 at 21:19 +0200, Pavel Machek wrote:

> And why do _you_ need it? Unfortunately I do not know what the
> decrementer is...?

The decrementer is a sort of timer that counts down and once it
overflows raises an exception in the CPU. Like a timer interrupt, but
not coming from anything external. We need to be able to make sure we
don't get a decrementer exception at some spots.

Also, we need to call some platform function things at that point to
prepare the system for suspend, and it needs to be done with interrupts
enabled but after all devices are suspended.

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