power: android-battery: Fix battery alarm timer not modified at suspend
authorHongMin Son <hongmin.son@samsung.com>
Fri, 5 Oct 2012 04:22:31 +0000 (13:22 +0900)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:10 +0000 (14:16 -0700)
commit148984e00a97cdb12882d1e71719907f51f03b5c
tree4496adf669b1e45f398726328c5c8280c529195e
parent8873f5de286b40ccf6ead25bfcebe21e82a907ae
power: android-battery: Fix battery alarm timer not modified at suspend

     - Alarm Timer driver is suspended before battery driver, so alarm
       timer was not changed to slow poll speed at suspend.  Use PM
       notifiers instead.
     - If charger is connected, keep 1 min alarm timer.

Signed-off-by: HongMin Son <hongmin.son@samsung.com>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Change-Id: Id0f3bda5d0749fd90f1964073bc30c1a73fc317f
drivers/power/android_battery.c