[TCP]: Fix linkage errors on i386.
To avoid raw division, use ktime_to_timeval() to get usec. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
1f9eda7e2b
commit
84299b3bc4
@@ -90,7 +90,7 @@ static void tcp_illinois_acked(struct sock *sk, u32 pkts_acked, ktime_t last)
|
||||
|
||||
ca->acked = pkts_acked;
|
||||
|
||||
rtt = ktime_to_ns(net_timedelta(last)) / NSEC_PER_USEC;
|
||||
rtt = ktime_to_us(net_timedelta(last));
|
||||
|
||||
/* ignore bogus values, this prevents wraparound in alpha math */
|
||||
if (rtt > RTT_MAX)
|
||||
|
Reference in New Issue
Block a user