Skip to content

Commit

Permalink
tcp: cdg: use div_u64()
Browse files Browse the repository at this point in the history
Fixes cross-compile to mips.

Signed-off-by: Kenneth Klette Jonassen <kennetkl@ifi.uio.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Kenneth Klette Jonassen authored and David S. Miller committed Jun 14, 2015
1 parent 25c43bf commit 758f0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/tcp_cdg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 758f0d4

Please sign in to comment.