projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25c43bf
)
tcp: cdg: use div_u64()
author
Kenneth Klette Jonassen
<kennetkl@ifi.uio.no>
Fri, 12 Jun 2015 15:24:03 +0000
(17:24 +0200)
committer
David S. Miller
<davem@davemloft.net>
Sun, 14 Jun 2015 19:57:45 +0000
(12:57 -0700)
Fixes cross-compile to mips.
Signed-off-by: Kenneth Klette Jonassen <kennetkl@ifi.uio.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_cdg.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/tcp_cdg.c
b/net/ipv4/tcp_cdg.c
index a52ce2db53f2d3c8f1d032628226b4c257c31dc2..8c6fd3d5e40feeb3c0b422d0e697e1a674b4f576 100644
(file)
--- a/
net/ipv4/tcp_cdg.c
+++ b/
net/ipv4/tcp_cdg.c
@@
-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;