power: android-battery: use freezable workqueue for monitor
authorTodd Poynor <toddpoynor@google.com>
Fri, 5 Oct 2012 09:04:45 +0000 (02:04 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:10 +0000 (14:16 -0700)
commitabbfb7cc1cec8018615a636c46d4a9e94d97aa22
treef784af2c3775fe925c292335f0b2524c13406386
parentad42da0cc73761e405128e71c58eda40c25367d4
power: android-battery: use freezable workqueue for monitor

Alarmtimer may execute the monitor early in the resume sequence.  Freeze the
monitor while suspended, and unfreeze after the battery charger and fuel gauge,
etc. drivers are resumed.

Change-Id: Iefda1c642d4b2440169d90d2bee2888fc70e030a
Signed-off-by: Todd Poynor <toddpoynor@google.com>
drivers/power/android_battery.c