Re: [linux-pm] [PATCH 0/8] Suspend block api (version 8)

Alan Stern
2010-05-28T15:30:40Z

On Fri, 28 May 2010, Peter Zijlstra wrote:

> On Fri, 2010-05-28 at 10:35 -0400, Alan Stern wrote:
> > The app is busy doing something else unimportant
> > We do into power save
> > Push a button, generate an IRQ
> > Come out of power save
> > No app to poke
> > * System goes back to sleep and eventually wakes up again
> > The app finishes what it was doing
> > The app sees there is a keystroke and marks itself important
> > ...
> >
> > The * step is where trouble can occur.
>
> Only because you don't run runnable tasks. Please stop considering that
> an option and these problems go away.

True. If the untrusted apps can be segregated and forcibly stopped,
and if they don't need timely delivery of wakeup events, then there's
no problem.

Alan Stern