projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
507d37c
)
[CCID3] Calculate ccid3hcrx_x_recv using usecs_div
author
Arnaldo Carvalho de Melo
<acme@mandriva.com>
Fri, 9 Sep 2005 05:31:07 +0000
(
02:31
-0300)
committer
Arnaldo Carvalho de Melo
<acme@mandriva.com>
Fri, 9 Sep 2005 05:31:07 +0000
(
02:31
-0300)
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
net/dccp/ccids/ccid3.c
patch
|
blob
|
history
diff --git
a/net/dccp/ccids/ccid3.c
b/net/dccp/ccids/ccid3.c
index
37fd9eb
..
63f8973
100644
(file)
--- a/
net/dccp/ccids/ccid3.c
+++ b/
net/dccp/ccids/ccid3.c
@@
-779,11
+779,8
@@
static void ccid3_hc_rx_send_feedback(struct sock *sk)
case TFRC_RSTATE_DATA: {
const u32 delta = timeval_delta(&now,
&hcrx->ccid3hcrx_tstamp_last_feedback);
-
- hcrx->ccid3hcrx_x_recv = (hcrx->ccid3hcrx_bytes_recv *
- USEC_PER_SEC);
- if (likely(delta > 1))
- hcrx->ccid3hcrx_x_recv /= delta;
+ hcrx->ccid3hcrx_x_recv = usecs_div(hcrx->ccid3hcrx_bytes_recv,
+ delta);
}
break;
default: