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
_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to