summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorKenneth Klette Jonassen <kennetkl@ifi.uio.no>2015-06-12 17:24:03 +0200
committerDavid S. Miller <davem@davemloft.net>2015-06-14 21:57:45 +0200
commit758f0d4b16e0508aa47a4a4d06eacba0d66e24d5 (patch)
treeee6f4d35de59598334c8aefe030716b907a16058 /net/ipv4
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff)
downloadlinux-758f0d4b16e0508aa47a4a4d06eacba0d66e24d5.tar.xz
linux-758f0d4b16e0508aa47a4a4d06eacba0d66e24d5.zip
tcp: cdg: use div_u64()
Fixes cross-compile to mips. Signed-off-by: Kenneth Klette Jonassen <kennetkl@ifi.uio.no> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/tcp_cdg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_cdg.c b/net/ipv4/tcp_cdg.c
index a52ce2db53f2..8c6fd3d5e40f 100644
--- a/net/ipv4/tcp_cdg.c
+++ b/net/ipv4/tcp_cdg.c
@@ -145,7 +145,7 @@ static void tcp_cdg_hystart_update(struct sock *sk)
return;
if (hystart_detect & HYSTART_ACK_TRAIN) {
- u32 now_us = local_clock() / NSEC_PER_USEC;
+ u32 now_us = div_u64(local_clock(), NSEC_PER_USEC);
if (ca->last_ack == 0 || !tcp_is_cwnd_limited(sk)) {
ca->last_ack = now_us;