Skip to contentSkip to conversation

mwifiex: use alloc_workqueue() function

PATCH New Bing Zhao 1 participant 1 message Oct 12, 2013 Networking drivers (wireless)

lore
Share & tools
lore

Bing Zhao

author
#0 lore raw

PATCH 1/1 mwifiex: use alloc_workqueue() function

From: Amitkumar Karwar <[email protected]>

It replaces deprecated create_workqueue().

---
 drivers/net/wireless/mwifiex/main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/wireless/mwifiex/main.c +3 -1
index c2b91f5..9d7c9d3 100644
@@ -882,7 +882,9 @@ mwifiex_add_card(void *card, struct semaphore *sem,
 	adapter->cmd_wait_q.status = 0;
 	adapter->scan_wait_q_woken = false;
 
-	adapter->workqueue = create_workqueue("MWIFIEX_WORK_QUEUE");
+	adapter->workqueue =
+		alloc_workqueue("MWIFIEX_WORK_QUEUE",
+				WQ_HIGHPRI | WQ_MEM_RECLAIM | WQ_UNBOUND, 1);
 	if (!adapter->workqueue)
 		goto err_kmalloc;
 
Signature · 1 line
1.8.2.3