summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_illinois.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2007-04-24 16:21:38 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-25 22:29:49 -0700
commit84299b3bc4eaedc0734fcc9052b01291e44445fc (patch)
treea66254a9d648ec93334abbb058a376e7482e80d5 /net/ipv4/tcp_illinois.c
parent1f9eda7e2b67898fb8e79b3aa3880211b51235e6 (diff)
downloadop-kernel-dev-84299b3bc4eaedc0734fcc9052b01291e44445fc.zip
op-kernel-dev-84299b3bc4eaedc0734fcc9052b01291e44445fc.tar.gz
[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_illinois.c')
-rw-r--r--net/ipv4/tcp_illinois.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_illinois.c b/net/ipv4/tcp_illinois.c
index 8e31659..4adc47c 100644
--- a/net/ipv4/tcp_illinois.c
+++ b/net/ipv4/tcp_illinois.c
@@ -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)
OpenPOWER on IntegriCloud