summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hidp
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-10-06 18:02:13 -0300
committerGustavo F. Padovan <padovan@profusion.mobi>2011-10-06 23:15:04 -0300
commitdc0da5cdac44aea6a04b18acc5526931430e0c35 (patch)
treeb3ae61e89c4813c3cd5be4f8dbf87992f8becd5b /net/bluetooth/hidp
parentcd11cdd28468d6222ce6489b2212fa7b0efaefdf (diff)
downloadtalos-op-linux-dc0da5cdac44aea6a04b18acc5526931430e0c35.tar.gz
talos-op-linux-dc0da5cdac44aea6a04b18acc5526931430e0c35.zip
Bluetooth: prioritize the interrupt channel in hidp
Interrupt channel has low latency requiments, should be processed first. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hidp')
-rw-r--r--net/bluetooth/hidp/core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index 08bfbb0f0926..2694a0a6186d 100644
--- a/net/bluetooth/hidp/core.c
+++ b/net/bluetooth/hidp/core.c
@@ -714,18 +714,18 @@ static int hidp_session(void *arg)
intr_sk->sk_state != BT_CONNECTED)
break;
- while ((skb = skb_dequeue(&ctrl_sk->sk_receive_queue))) {
+ while ((skb = skb_dequeue(&intr_sk->sk_receive_queue))) {
skb_orphan(skb);
if (!skb_linearize(skb))
- hidp_recv_ctrl_frame(session, skb);
+ hidp_recv_intr_frame(session, skb);
else
kfree_skb(skb);
}
- while ((skb = skb_dequeue(&intr_sk->sk_receive_queue))) {
+ while ((skb = skb_dequeue(&ctrl_sk->sk_receive_queue))) {
skb_orphan(skb);
if (!skb_linearize(skb))
- hidp_recv_intr_frame(session, skb);
+ hidp_recv_ctrl_frame(session, skb);
else
kfree_skb(skb);
}
OpenPOWER on IntegriCloud