summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_sock.c
diff options
context:
space:
mode:
authorGustavo F. Padovan2011-12-15 03:50:02 +0100
committerGustavo F. Padovan2011-12-18 20:07:57 +0100
commit3eff45eaf81780dad25c167bbaafa7d25ae407da (patch)
treef20254e5ded21e81b0313b1f8b56dd0165a09821 /net/bluetooth/hci_sock.c
parentBluetooth: Move command task to workqueue (diff)
downloadkernel-qcow2-linux-3eff45eaf81780dad25c167bbaafa7d25ae407da.tar.gz
kernel-qcow2-linux-3eff45eaf81780dad25c167bbaafa7d25ae407da.tar.xz
kernel-qcow2-linux-3eff45eaf81780dad25c167bbaafa7d25ae407da.zip
Bluetooth: convert tx_task to workqueue
This should simplify Bluetooth core processing a lot. Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_sock.c')
-rw-r--r--net/bluetooth/hci_sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c
index d10a724810ec..cd064068d94a 100644
--- a/net/bluetooth/hci_sock.c
+++ b/net/bluetooth/hci_sock.c
@@ -535,7 +535,7 @@ static int hci_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
if (test_bit(HCI_RAW, &hdev->flags) || (ogf == 0x3f)) {
skb_queue_tail(&hdev->raw_q, skb);
- tasklet_schedule(&hdev->tx_task);
+ queue_work(hdev->workqueue, &hdev->tx_work);
} else {
skb_queue_tail(&hdev->cmd_q, skb);
queue_work(hdev->workqueue, &hdev->cmd_work);
@@ -547,7 +547,7 @@ static int hci_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
}
skb_queue_tail(&hdev->raw_q, skb);
- tasklet_schedule(&hdev->tx_task);
+ queue_work(hdev->workqueue, &hdev->tx_work);
}
err = len;