diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2007-04-24 19:21:38 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:29:49 -0400 |
commit | 84299b3bc4eaedc0734fcc9052b01291e44445fc (patch) | |
tree | a66254a9d648ec93334abbb058a376e7482e80d5 /net/ipv4/tcp_veno.c | |
parent | 1f9eda7e2b67898fb8e79b3aa3880211b51235e6 (diff) |
[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>
Diffstat (limited to 'net/ipv4/tcp_veno.c')
-rw-r--r-- | net/ipv4/tcp_veno.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_veno.c b/net/ipv4/tcp_veno.c index 0b50d0607a0..9edb340f2f9 100644 --- a/net/ipv4/tcp_veno.c +++ b/net/ipv4/tcp_veno.c | |||
@@ -75,7 +75,7 @@ static void tcp_veno_pkts_acked(struct sock *sk, u32 cnt, ktime_t last) | |||
75 | u32 vrtt; | 75 | u32 vrtt; |
76 | 76 | ||
77 | /* Never allow zero rtt or baseRTT */ | 77 | /* Never allow zero rtt or baseRTT */ |
78 | vrtt = (ktime_to_ns(net_timedelta(last)) / NSEC_PER_USEC) + 1; | 78 | vrtt = ktime_to_us(net_timedelta(last)) + 1; |
79 | 79 | ||
80 | /* Filter to find propagation delay: */ | 80 | /* Filter to find propagation delay: */ |
81 | if (vrtt < veno->basertt) | 81 | if (vrtt < veno->basertt) |