Commit dc0da5cd authored by Gustavo F. Padovan's avatar Gustavo F. Padovan

Bluetooth: prioritize the interrupt channel in hidp

Interrupt channel has low latency requiments, should be processed first.
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent cd11cdd2
...@@ -714,18 +714,18 @@ static int hidp_session(void *arg) ...@@ -714,18 +714,18 @@ static int hidp_session(void *arg)
intr_sk->sk_state != BT_CONNECTED) intr_sk->sk_state != BT_CONNECTED)
break; break;
while ((skb = skb_dequeue(&ctrl_sk->sk_receive_queue))) { while ((skb = skb_dequeue(&intr_sk->sk_receive_queue))) {
skb_orphan(skb); skb_orphan(skb);
if (!skb_linearize(skb)) if (!skb_linearize(skb))
hidp_recv_ctrl_frame(session, skb); hidp_recv_intr_frame(session, skb);
else else
kfree_skb(skb); kfree_skb(skb);
} }
while ((skb = skb_dequeue(&intr_sk->sk_receive_queue))) { while ((skb = skb_dequeue(&ctrl_sk->sk_receive_queue))) {
skb_orphan(skb); skb_orphan(skb);
if (!skb_linearize(skb)) if (!skb_linearize(skb))
hidp_recv_intr_frame(session, skb); hidp_recv_ctrl_frame(session, skb);
else else
kfree_skb(skb); kfree_skb(skb);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment