From: Kenneth Klette Jonassen Date: Fri, 12 Jun 2015 15:24:03 +0000 (+0200) Subject: tcp: cdg: use div_u64() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=758f0d4b16e0508aa47a4a4d06eacba0d66e24d5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git tcp: cdg: use div_u64() Fixes cross-compile to mips. Signed-off-by: Kenneth Klette Jonassen Signed-off-by: David S. Miller --- 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;