summaryrefslogtreecommitdiff
path: root/include/net/busy_poll.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-07-30 10:42:13 +0300
committerDavid S. Miller <davem@davemloft.net>2018-07-30 19:10:25 +0300
commita331de3bf0e66ab2437fc8c5b99bd3c0d9da3088 (patch)
tree307bcd2465bd96bc79cecf60abf50630538117a8 /include/net/busy_poll.h
parentf641f13b992979b97e595b761a9ba1a64fed7c4e (diff)
downloadlinux-a331de3bf0e66ab2437fc8c5b99bd3c0d9da3088.tar.xz
net: remove sock_poll_busy_flag
Fold it into the only caller to make the code simpler and easier to read. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/busy_poll.h')
-rw-r--r--include/net/busy_poll.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/net/busy_poll.h b/include/net/busy_poll.h
index 85777e68f738..ba61cdd09eaa 100644
--- a/include/net/busy_poll.h
+++ b/include/net/busy_poll.h
@@ -121,12 +121,6 @@ static inline void sk_busy_loop(struct sock *sk, int nonblock)
#endif
}
-/* if this socket can poll_ll, tell the system call */
-static inline __poll_t sock_poll_busy_flag(struct socket *sock)
-{
- return sk_can_busy_loop(sock->sk) ? POLL_BUSY_LOOP : 0;
-}
-
/* used in the NIC receive handler to mark the skb */
static inline void skb_mark_napi_id(struct sk_buff *skb,
struct napi_struct *napi)