power_supply: Prevent suspend until power supply events are processed
authorZoran Markovic <zoran.markovic@linaro.org>
Fri, 2 Aug 2013 20:38:02 +0000 (13:38 -0700)
committerAnton Vorontsov <anton@enomsg.org>
Wed, 28 Aug 2013 01:42:48 +0000 (18:42 -0700)
This patch, originally authored by Arve Hjonnevag and Todd Poynor,
prevents the system from entering suspend mode until the power supply
plug, unplug, or any other change of state event is fully processed. This
guarantees that the screen lights up and displays the battery charging
state. The implementation uses the power supply wakeup_source object.

Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Arve Hjonnevag <arve@android.com>
Cc: Todd Poynor <toddpoynor@google.com>
Cc: John Stultz <john.stultz@linaro.org>
Signed-off-by: Zoran Markovic <zoran.markovic@linaro.org>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>

No differences found