提交 dc0da5cd 编写于 作者: G Gustavo F. Padovan

Bluetooth: prioritize the interrupt channel in hidp

Interrupt channel has low latency requiments, should be processed first.
Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
上级 cd11cdd2
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册