On Mon, Oct 04, 2010 at 01:04:09AM +0200, Rafael J. Wysocki wrote:
Well, before I saw your patch I was thinking about implementing an
Android PM driver that would request a pm_qos active request that would
be notified and interface with your wake event code. It would also
expose a misc /dev/susped_blocked node that would be signaled when the
pm_qos active request went to zero.
Now I'm sort of making things up as I go but, some sort of non-poling
mechanism to re-attempt the suspend, for type 2, is needed but I'm not
sure where to put it now.
Also, we may want to think about registering events that user mode will
handle, and all others are treated as type 2 events.
I'm still studying the patch but, you are likely right. I need to look
at how much overhead changing the suspend blocking/unblocking is
handled. I expect that some drivers will be hitting it on hot code
paths.
--mark
--