aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>2016-08-30 13:12:53 -0400
committerMarcel Holtmann <marcel@holtmann.org>2016-09-19 14:19:34 -0400
commitfac9a6021b4e8dc8b2112a8e133936c0daf7ff94 (patch)
tree26cd7aa384852e03f1ff0561a437c5806c90cb07
parentf4cdbb3f25c15c17a952deae1f2e0db6df8f1948 (diff)
Bluetooth: Remove deprecated create_singlethread_workqueue
The workqueue "workqueue" queues multiple work items viz &qca->ws_awake_rx &qca->ws_rx_vote_off, &qca->ws_awake_device, &qca->ws_tx_vote_off which require strict execution ordering. Hence, an ordered dedicated workqueue has been used to replace the deprecated create_singlethread_workqueue instance. WQ_MEM_RECLAIM has not been set since the driver is not being used on a memory reclaim path. Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--drivers/bluetooth/hci_qca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index 683c2b642057..6c867fbc56a7 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -397,7 +397,7 @@ static int qca_open(struct hci_uart *hu)
397 skb_queue_head_init(&qca->txq); 397 skb_queue_head_init(&qca->txq);
398 skb_queue_head_init(&qca->tx_wait_q); 398 skb_queue_head_init(&qca->tx_wait_q);
399 spin_lock_init(&qca->hci_ibs_lock); 399 spin_lock_init(&qca->hci_ibs_lock);
400 qca->workqueue = create_singlethread_workqueue("qca_wq"); 400 qca->workqueue = alloc_ordered_workqueue("qca_wq", 0);
401 if (!qca->workqueue) { 401 if (!qca->workqueue) {
402 BT_ERR("QCA Workqueue not initialized properly"); 402 BT_ERR("QCA Workqueue not initialized properly");
403 kfree(qca); 403 kfree(qca);