aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_event.c
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-12-14 20:53:47 -0500
committerGustavo F. Padovan <padovan@profusion.mobi>2011-12-18 14:07:57 -0500
commitc347b765fe70d718c721cd6d0b979cfbaed83125 (patch)
treef7ab6413eda30d7741173738f6ab1ad5a69c9161 /net/bluetooth/hci_event.c
parent3c54711c4fd103edf2044ab60726939f1de02b0c (diff)
Bluetooth: Move command task to workqueue
As part of the moving on all the Bluetooth processing to Process context. Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r--net/bluetooth/hci_event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 93ecb2dfa177..23466bb48423 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -2112,7 +2112,7 @@ static inline void hci_cmd_complete_evt(struct hci_dev *hdev, struct sk_buff *sk
2112 if (ev->ncmd) { 2112 if (ev->ncmd) {
2113 atomic_set(&hdev->cmd_cnt, 1); 2113 atomic_set(&hdev->cmd_cnt, 1);
2114 if (!skb_queue_empty(&hdev->cmd_q)) 2114 if (!skb_queue_empty(&hdev->cmd_q))
2115 tasklet_schedule(&hdev->cmd_task); 2115 queue_work(hdev->workqueue, &hdev->cmd_work);
2116 } 2116 }
2117} 2117}
2118 2118
@@ -2194,7 +2194,7 @@ static inline void hci_cmd_status_evt(struct hci_dev *hdev, struct sk_buff *skb)
2194 if (ev->ncmd && !test_bit(HCI_RESET, &hdev->flags)) { 2194 if (ev->ncmd && !test_bit(HCI_RESET, &hdev->flags)) {
2195 atomic_set(&hdev->cmd_cnt, 1); 2195 atomic_set(&hdev->cmd_cnt, 1);
2196 if (!skb_queue_empty(&hdev->cmd_q)) 2196 if (!skb_queue_empty(&hdev->cmd_q))
2197 tasklet_schedule(&hdev->cmd_task); 2197 queue_work(hdev->workqueue, &hdev->cmd_work);
2198 } 2198 }
2199} 2199}
2200 2200