Re: [linux-pm] suspend blockers & Android integration

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arve Hjønnevåg
Date: Friday, June 11, 2010 - 3:18 pm

2010/6/11 Alan Stern <stern@rowland.harvard.edu>:

That is one way to use it, and I did this so code that opened an input
device without reading from it would not prevent suspend forever. In
the last patchset I posted, I instead used an ioctl to enable the
suspend blocker.


For incoming network traffic we use a wakelock with a timeout to
prevent suspend long enough for the data to make it to user-space
since we have not added wakelocks to the network stack.


We did this to avoid changing to the network stack, tty layer, etc.


Keypad, network, charger, rtc, but I'm sure I forgot some.


In addition to the drivers that enable the wakeup events, we have
added suspend blockers to the input event code and power supply
framework. The tty layer and network stack would also need suspend
blockers to avoid using timeouts.

-- 
Arve Hjønnevåg
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [linux-pm] suspend blockers & Android integration, Arve Hjønnevåg, (Fri Jun 11, 3:18 pm)