diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2011-12-22 21:47:29 +0100 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@frijolero.org> | 2011-12-23 07:07:01 -0800 |
commit | ed376aacb037d31f53960bec501604435b2fa5f1 (patch) | |
tree | d4c85671629a5586a94ccfb65c8baf2d98298c51 /patches | |
parent | df5d8ab6eee48d041d8dcebdcdcdb1cb105d8f97 (diff) |
compat-wireless: use other workqueue
Old kernel versions do not support WQ_HIGHPRI and WQ_MEM_RECLAIM so we
should use create_singlethread_workqueue() which was used at this
position before.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Diffstat (limited to 'patches')
-rw-r--r-- | patches/46-use_other_workqueue.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/patches/46-use_other_workqueue.patch b/patches/46-use_other_workqueue.patch new file mode 100644 index 00000000..4cfe4f6a --- /dev/null +++ b/patches/46-use_other_workqueue.patch @@ -0,0 +1,15 @@ +--- a/net/bluetooth/hci_core.c ++++ b/net/bluetooth/hci_core.c +@@ -1534,8 +1534,12 @@ int hci_register_dev(struct hci_dev *hde + + write_unlock_bh(&hci_dev_list_lock); + ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) + hdev->workqueue = alloc_workqueue(hdev->name, WQ_HIGHPRI | WQ_UNBOUND | + WQ_MEM_RECLAIM, 1); ++#else ++ hdev->workqueue = create_singlethread_workqueue(hdev->name); ++#endif + if (!hdev->workqueue) { + error = -ENOMEM; + goto err; |