diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-11-15 19:58:26 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-16 19:17:43 (GMT) |
commit | c31504dc0d1dc853dcee509d9999169a9097a717 (patch) | |
tree | 8ee1d5616b7140759cf742ef89cf9f7ba1c01b20 /include/net/sock.h | |
parent | 213b15ca818adf7766cd7162c2159a6ecdd3bab8 (diff) | |
download | linux-fsl-qoriq-c31504dc0d1dc853dcee509d9999169a9097a717.tar.xz |
udp: use atomic_inc_not_zero_hint
UDP sockets refcount is usually 2, unless an incoming frame is going to
be queued in receive or backlog queue.
Using atomic_inc_not_zero_hint() permits to reduce latency, because
processor issues less memory transactions.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index a6338d0..eb0c1f5 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -57,7 +57,7 @@ #include <linux/rculist_nulls.h> #include <linux/poll.h> -#include <asm/atomic.h> +#include <linux/atomic.h> #include <net/dst.h> #include <net/checksum.h> |