[BUG] driver/staging/android/timed_gpio.c - very long gpio on if CPU suspends

abhilash jindal jindal.abhilash at gmail.com
Thu Sep 5 13:00:46 UTC 2013


timed_gpio.c uses hrtimer to switch off the gpio.

However, hrtimer does not get fired after the CPU suspends. Hence, if
the CPU suspends before the timer gets fired, the gpio stays
on until the next time when CPU wakes up causing unnecessary
battery drain (which can be as long as 15 minutes).

IMHO, we should replace hrtimer by android alarm timer to make sure that
CPU wakes up at the right time and gpio gets turned off.

Thanks
Abhilash


More information about the devel mailing list