summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_lp.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2007-04-25 01:21:38 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 07:29:49 +0200
commit84299b3bc4eaedc0734fcc9052b01291e44445fc (patch)
treea66254a9d648ec93334abbb058a376e7482e80d5 /net/ipv4/tcp_lp.c
parent[TIPC]: Enhancements to msg_set_bits() routine (diff)
downloadlinux-84299b3bc4eaedc0734fcc9052b01291e44445fc.tar.xz
linux-84299b3bc4eaedc0734fcc9052b01291e44445fc.zip
[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_lp.c')
-rw-r--r--net/ipv4/tcp_lp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_lp.c b/net/ipv4/tcp_lp.c
index b4e062ab24a1..43294ad9f63e 100644
--- a/net/ipv4/tcp_lp.c
+++ b/net/ipv4/tcp_lp.c
@@ -266,7 +266,7 @@ static void tcp_lp_pkts_acked(struct sock *sk, u32 num_acked, ktime_t last)
struct tcp_sock *tp = tcp_sk(sk);
struct lp *lp = inet_csk_ca(sk);
- tcp_lp_rtt_sample(sk, ktime_to_ns(net_timedelta(last)) / NSEC_PER_USEC);
+ tcp_lp_rtt_sample(sk, ktime_to_us(net_timedelta(last)));
/* calc inference */
if (tcp_time_stamp > tp->rx_opt.rcv_tsecr)