diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-10-06 17:02:13 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-10-06 22:15:04 -0400 |
commit | dc0da5cdac44aea6a04b18acc5526931430e0c35 (patch) | |
tree | b3ae61e89c4813c3cd5be4f8dbf87992f8becd5b /net/bluetooth/hidp | |
parent | cd11cdd28468d6222ce6489b2212fa7b0efaefdf (diff) |
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.c | 8 |
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) | |||
714 | intr_sk->sk_state != BT_CONNECTED) | 714 | intr_sk->sk_state != BT_CONNECTED) |
715 | break; | 715 | break; |
716 | 716 | ||
717 | while ((skb = skb_dequeue(&ctrl_sk->sk_receive_queue))) { | 717 | while ((skb = skb_dequeue(&intr_sk->sk_receive_queue))) { |
718 | skb_orphan(skb); | 718 | skb_orphan(skb); |
719 | if (!skb_linearize(skb)) | 719 | if (!skb_linearize(skb)) |
720 | hidp_recv_ctrl_frame(session, skb); | 720 | hidp_recv_intr_frame(session, skb); |
721 | else | 721 | else |
722 | kfree_skb(skb); | 722 | kfree_skb(skb); |
723 | } | 723 | } |
724 | 724 | ||
725 | while ((skb = skb_dequeue(&intr_sk->sk_receive_queue))) { | 725 | while ((skb = skb_dequeue(&ctrl_sk->sk_receive_queue))) { |
726 | skb_orphan(skb); | 726 | skb_orphan(skb); |
727 | if (!skb_linearize(skb)) | 727 | if (!skb_linearize(skb)) |
728 | hidp_recv_intr_frame(session, skb); | 728 | hidp_recv_ctrl_frame(session, skb); |
729 | else | 729 | else |
730 | kfree_skb(skb); | 730 | kfree_skb(skb); |
731 | } | 731 | } |