Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 452fa86e authored by Bhaktipriya Shridhar's avatar Bhaktipriya Shridhar Committed by Kalle Valo
Browse files

libertas_tf: Remove create_workqueue



alloc_workqueue replaces deprecated create_workqueue().

A dedicated workqueue has been used since the workitem (viz
&priv->cmd_work per priv, which maps to lbtf_cmd_work) is involved in
actual command processing and may be used on a memory reclaim path.
The workitems require forward progress under memory pressure and hence,
WQ_MEM_RECLAIM has been set. Since there are only a fixed number of work
items, explicit concurrency limit is unnecessary here.

Signed-off-by: default avatarBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent f568adac
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -735,7 +735,7 @@ EXPORT_SYMBOL_GPL(lbtf_bcn_sent);
static int __init lbtf_init_module(void)
static int __init lbtf_init_module(void)
{
{
	lbtf_deb_enter(LBTF_DEB_MAIN);
	lbtf_deb_enter(LBTF_DEB_MAIN);
	lbtf_wq = create_workqueue("libertastf");
	lbtf_wq = alloc_workqueue("libertastf", WQ_MEM_RECLAIM, 0);
	if (lbtf_wq == NULL) {
	if (lbtf_wq == NULL) {
		printk(KERN_ERR "libertastf: couldn't create workqueue\n");
		printk(KERN_ERR "libertastf: couldn't create workqueue\n");
		return -ENOMEM;
		return -ENOMEM;