aboutsummaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2012-10-05 02:04:45 -0700
committerColin Cross <ccross@android.com>2014-03-19 13:09:32 -0700
commitcf33e1c75a163e9eec79b16f77cd17bbf0fef881 (patch)
treeb86a31f9712ad5ae241eb0e424dff126ec7911f7 /drivers/power
parentd50b2ff1fec2d4de728e764d6420763692a761b0 (diff)
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>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/android_battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/android_battery.c b/drivers/power/android_battery.c
index 5001bba28f9..7befc14e3aa 100644
--- a/drivers/power/android_battery.c
+++ b/drivers/power/android_battery.c
@@ -627,7 +627,7 @@ static int android_bat_probe(struct platform_device *pdev)
}
battery->monitor_wqueue =
- create_singlethread_workqueue(dev_name(&pdev->dev));
+ alloc_workqueue(dev_name(&pdev->dev), WQ_FREEZABLE, 1);
if (!battery->monitor_wqueue) {
dev_err(battery->dev, "%s: fail to create workqueue\n",
__func__);