On Wed, 26 May 2010 10:45:33 +0200
Peter Zijlstra <peterz@infradead.org> wrote:
Yes. By now, everyone reading the posts should know all points.
Raffael obviously was part of this discussion and came to the decision
to merge it.
My take of the discussion:
_IF_ you want to suspend aggressively, I don't see another
way.
The thing is, this is a paradigm change. Suspend is not anymore
controlled by userspace. In order to let userspace control/work with
this scheme, it needs to know when a suspend will be successfull or
poll:
1. kernel sees suspend may be possible on his side of things
2. kernel sends a message to userspace that i could be possibly
possible to suspend, but it may well be that by the time
userspace suspends it is not possible anymore
3. userspace decides to suspend.
<- system suspends... or not ..->
4. userspace retries ... retries ... retries ...
And then you have the whole can of worms and races.
Or you have the suspend-blocker scheme:
1. kernel sees suspend is possible.
2. kernel suspends.
3. bingo.
Cheers,
Flo
--