summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>2016-08-13 12:16:10 -0400
committerSebastian Reichel <sre@kernel.org>2016-08-15 18:54:37 -0400
commit0b9992f76f65532be8727977bd6997aa55e1340e (patch)
tree0c60c6af357fbfc586681e4ee2a1cb23f5b81cdf /drivers/power
parent2ee565c934b7aa3ad84dcc3735fb2359026866a0 (diff)
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>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/abx500_chargalg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/supply/abx500_chargalg.c b/drivers/power/supply/abx500_chargalg.c
index d9104b1ab7cf..a4411d6bbc96 100644
--- a/drivers/power/supply/abx500_chargalg.c
+++ b/drivers/power/supply/abx500_chargalg.c
@@ -2091,8 +2091,8 @@ static int abx500_chargalg_probe(struct platform_device *pdev)
2091 abx500_chargalg_maintenance_timer_expired; 2091 abx500_chargalg_maintenance_timer_expired;
2092 2092
2093 /* Create a work queue for the chargalg */ 2093 /* Create a work queue for the chargalg */
2094 di->chargalg_wq = 2094 di->chargalg_wq = alloc_ordered_workqueue("abx500_chargalg_wq",
2095 create_singlethread_workqueue("abx500_chargalg_wq"); 2095 WQ_MEM_RECLAIM);
2096 if (di->chargalg_wq == NULL) { 2096 if (di->chargalg_wq == NULL) {
2097 dev_err(di->dev, "failed to create work queue\n"); 2097 dev_err(di->dev, "failed to create work queue\n");
2098 return -ENOMEM; 2098 return -ENOMEM;