Skip to content

Commit

Permalink
Bluetooth: prioritize the interrupt channel in hidp
Browse files Browse the repository at this point in the history
Interrupt channel has low latency requiments, should be processed first.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
  • Loading branch information
Gustavo F. Padovan committed Oct 7, 2011
1 parent cd11cdd commit dc0da5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions net/bluetooth/hidp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit dc0da5c

Please sign in to comment.