diff options
author | Eliezer Tamir <eliezer.tamir@linux.intel.com> | 2013-07-08 09:20:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-08 22:25:45 -0400 |
commit | cbf55001b2ddb814329735641be5d29b08c82b08 (patch) | |
tree | 110c1191f4b6699bef04ebdf45e4677c623a7ceb /net/ipv4/tcp.c | |
parent | c7e8e8a8f7a70b343ca1e0f90a31e35ab2d16de1 (diff) |
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 <eliezer.tamir@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 46ed9afd1f5e..15cbfa94bd8e 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -1554,9 +1554,9 @@ int tcp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | |||
1554 | struct sk_buff *skb; | 1554 | struct sk_buff *skb; |
1555 | u32 urg_hole = 0; | 1555 | u32 urg_hole = 0; |
1556 | 1556 | ||
1557 | if (sk_valid_ll(sk) && skb_queue_empty(&sk->sk_receive_queue) | 1557 | if (sk_can_busy_loop(sk) && skb_queue_empty(&sk->sk_receive_queue) && |
1558 | && (sk->sk_state == TCP_ESTABLISHED)) | 1558 | (sk->sk_state == TCP_ESTABLISHED)) |
1559 | sk_poll_ll(sk, nonblock); | 1559 | sk_busy_loop(sk, nonblock); |
1560 | 1560 | ||
1561 | lock_sock(sk); | 1561 | lock_sock(sk); |
1562 | 1562 | ||