power: ab8500_btemp: Remove deprecated create_singlethread_workqueue
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Sat, 13 Aug 2016 16:17:35 +0000 (21:47 +0530)
committerSebastian Reichel <sre@kernel.org>
Mon, 15 Aug 2016 22:54:37 +0000 (00:54 +0200)
commita8dd5b6868dd8ecb79f741dd94ac25a46ac19ba4
tree8b58dbfd903ddd1647da034dee2e2a3551ee71fc
parent0b9992f76f65532be8727977bd6997aa55e1340e
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>
drivers/power/supply/ab8500_btemp.c