diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-12-17 14:47:30 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-12-18 14:07:58 -0500 |
commit | 32845eb1242e4c862de8d27c19ae9b3011f89291 (patch) | |
tree | ee4dd05c5c12264bdca123ede2edadd38da26e54 /net/bluetooth/hci_core.c | |
parent | 80b7ab33414beeb3c17600af9b69d903f5cf8a7d (diff) |
Bluetooth: Use new alloc_workqueue()
Update hdev workqueue API usage to use the new interface, this new
interface also allow us to mark this workqueue as WQ_HIGHPRI, so now rx
and tx work gets higher priority when running.
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r-- | net/bluetooth/hci_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index a14a60d5890b..dcbb7655d772 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -1500,7 +1500,8 @@ int hci_register_dev(struct hci_dev *hdev) | |||
1500 | 1500 | ||
1501 | write_unlock_bh(&hci_dev_list_lock); | 1501 | write_unlock_bh(&hci_dev_list_lock); |
1502 | 1502 | ||
1503 | hdev->workqueue = create_singlethread_workqueue(hdev->name); | 1503 | hdev->workqueue = alloc_workqueue(hdev->name, WQ_HIGHPRI | WQ_UNBOUND | |
1504 | WQ_MEM_RECLAIM, 1); | ||
1504 | if (!hdev->workqueue) { | 1505 | if (!hdev->workqueue) { |
1505 | error = -ENOMEM; | 1506 | error = -ENOMEM; |
1506 | goto err; | 1507 | goto err; |