power: abx500_chargalg: Remove deprecated create_singlethread_workqueue
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Sat, 13 Aug 2016 16:16:10 +0000 (21:46 +0530)
committerSebastian Reichel <sre@kernel.org>
Mon, 15 Aug 2016 22:54:37 +0000 (00:54 +0200)
commit0b9992f76f65532be8727977bd6997aa55e1340e
tree0c60c6af357fbfc586681e4ee2a1cb23f5b81cdf
parent2ee565c934b7aa3ad84dcc3735fb2359026866a0
power: abx500_chargalg: Remove deprecated create_singlethread_workqueue

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "chargalg_wq" is used for running the charging algorithm.
It has multiple workitems viz &di->chargalg_periodic_work,
&di->chargalg_wd_work, &di->chargalg_work per abx500_chargalg, which
require ordering. It has been identity converted.

Also, WQ_MEM_RECLAIM has been set to ensure forward progress under
memory pressure.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/abx500_chargalg.c