On Wed, 26 May 2010 11:54:37 +0200
Peter Zijlstra <peterz@infradead.org> wrote:
What about the worms? :)
I referred to retrying steps 1 through 3 as being the loop.
You have a point there. But what follows?
You either need to let userspace know that the kernel is now able to
suspend or you let the kernel know that userspace is now able to
suspend.
Else you can not make a well informed suspend-decision and have to
guess and retry.
Why not look at blocking and unblocking as these events you want
to have? Without wiggle room and retrying.
And not having to route through userspace simplifies the auto-suspend
scheme further.
Cheers,
Flo
--