tcp: remove conditional branches from tcp_mstamp_refresh()
authorEric Dumazet <edumazet@google.com>
Fri, 22 Mar 2019 13:26:29 +0000 (06:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Mar 2019 01:43:21 +0000 (21:43 -0400)
commite6d1407013a91722ffc89e980d715eb9ce7b57f6
tree2db96af75038ab5fbcc8010c0f060fab98dd906d
parenta7a01ab312601ba5966ec80383e6bbef241d883f
tcp: remove conditional branches from tcp_mstamp_refresh()

tcp_clock_ns() (aka ktime_get_ns()) is using monotonic clock,
so the checks we had in tcp_mstamp_refresh() are no longer
relevant.

This patch removes cpu stall (when the cache line is not hot)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c