On Wed, 2010-05-26 at 13:49 +0100, Matthew Garrett wrote: Lack of quoting makes it hard to see what your 'this' refers to. I'll assume its the userspace suspend manager. > While this approach could be made to work, it's ugly in other ways. > After wakeup, userspace has to pause for a while before it can trigger > another sleep in order to give all the apps an opportunity to check for > wakeup events and block suspend if they wish to. That's additional > runtime that doesn't exist in the kernel-mediated case. I fail to see why. In both cases the woken userspace will contact a central governing task, either the kernel or the userspace suspend manager, and inform it there is work to be done, and please don't suspend now. Also, since we did get woken, there clearly is work to do and we should only try suspending again once someone did inform us of completing it. In both cases, once the event is fully handled, will there be communication of this fact and suspend can be attempted. I don't see a reason to 'wait' for anything -- except maybe speculate on the avgerage wakeup rate and decide not to suspend quite yet. _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm