diff options
author | Bhaktipriya Shridhar <bhaktipriya96@gmail.com> | 2016-08-13 12:17:35 -0400 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2016-08-15 18:54:37 -0400 |
commit | a8dd5b6868dd8ecb79f741dd94ac25a46ac19ba4 (patch) | |
tree | 8b58dbfd903ddd1647da034dee2e2a3551ee71fc /drivers | |
parent | 0b9992f76f65532be8727977bd6997aa55e1340e (diff) |
power: ab8500_btemp: Remove deprecated create_singlethread_workqueue
The workqueue "btemp_wq" is used for measuring the temperature
periodically. It queues a single workitem (btemp_periodic_work) and
hence doesn't require ordering. Thus, the deprecated
create_singlethread_workqueue() instance has been replaced with
alloc_workqueue().
The WQ_MEM_RECLAIM flag has been set to ensure forward progress under
memory pressure.
Since there is a single work item, explicit concurrency
limit is unnecessary here.
Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/supply/ab8500_btemp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/ab8500_btemp.c b/drivers/power/supply/ab8500_btemp.c index bf2e5dd301e7..6ffdc18f2599 100644 --- a/drivers/power/supply/ab8500_btemp.c +++ b/drivers/power/supply/ab8500_btemp.c | |||
@@ -1095,7 +1095,7 @@ static int ab8500_btemp_probe(struct platform_device *pdev) | |||
1095 | 1095 | ||
1096 | /* Create a work queue for the btemp */ | 1096 | /* Create a work queue for the btemp */ |
1097 | di->btemp_wq = | 1097 | di->btemp_wq = |
1098 | create_singlethread_workqueue("ab8500_btemp_wq"); | 1098 | alloc_workqueue("ab8500_btemp_wq", WQ_MEM_RECLAIM, 0); |
1099 | if (di->btemp_wq == NULL) { | 1099 | if (di->btemp_wq == NULL) { |
1100 | dev_err(di->dev, "failed to create work queue\n"); | 1100 | dev_err(di->dev, "failed to create work queue\n"); |
1101 | return -ENOMEM; | 1101 | return -ENOMEM; |