mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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>
This commit is contained in:
parent
25c43bf13b
commit
758f0d4b16
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user