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

Pavel Machek
2007-04-10T11:36:24Z

Hi!

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

Hmm, and can't you simply create sysdev for decrementer and special
platform handling? sysdevs should be suspended last...
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html