Skip to content

Commit 758f0d4

Browse files
knnethdavem330
authored andcommitted
tcp: cdg: use div_u64()
Fixes cross-compile to mips. Signed-off-by: Kenneth Klette Jonassen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 25c43bf commit 758f0d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/tcp_cdg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static void tcp_cdg_hystart_update(struct sock *sk)
145145
return;
146146

147147
if (hystart_detect & HYSTART_ACK_TRAIN) {
148-
u32 now_us = local_clock() / NSEC_PER_USEC;
148+
u32 now_us = div_u64(local_clock(), NSEC_PER_USEC);
149149

150150
if (ca->last_ack == 0 || !tcp_is_cwnd_limited(sk)) {
151151
ca->last_ack = now_us;

0 commit comments

Comments
 (0)