mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
net: rename low latency sockets functions to busy poll
Rename functions in include/net/ll_poll.h to busy wait. Clarify documentation about expected power use increase. Rename POLL_LL to POLL_BUSY_LOOP. Add need_resched() testing to poll/select busy loops. Note, that in select and poll can_busy_poll is dynamic and is updated continuously to reflect the existence of supported sockets with valid queue information. Signed-off-by: Eliezer Tamir <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
c7e8e8a8f7
commit
cbf55001b2
7 changed files with 80 additions and 61 deletions
|
|
@ -1554,9 +1554,9 @@ int tcp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
|
|||
struct sk_buff *skb;
|
||||
u32 urg_hole = 0;
|
||||
|
||||
if (sk_valid_ll(sk) && skb_queue_empty(&sk->sk_receive_queue)
|
||||
&& (sk->sk_state == TCP_ESTABLISHED))
|
||||
sk_poll_ll(sk, nonblock);
|
||||
if (sk_can_busy_loop(sk) && skb_queue_empty(&sk->sk_receive_queue) &&
|
||||
(sk->sk_state == TCP_ESTABLISHED))
|
||||
sk_busy_loop(sk, nonblock);
|
||||
|
||||
lock_sock(sk);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue