projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aa953d
)
netem: fix build error on 32bit arches
author
Eric Dumazet
<eric.dumazet@gmail.com>
Wed, 30 Nov 2011 23:32:14 +0000
(23:32 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 1 Dec 2011 16:40:19 +0000
(11:40 -0500)
ERROR: "__udivdi3" [net/sched/sch_netem.ko] undefined!
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Hagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_netem.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_netem.c
b/net/sched/sch_netem.c
index
9b7af9f
..
3bfd733
100644
(file)
--- a/
net/sched/sch_netem.c
+++ b/
net/sched/sch_netem.c
@@
-301,7
+301,10
@@
static psched_tdiff_t tabledist(psched_tdiff_t mu, psched_tdiff_t sigma,
static psched_time_t packet_len_2_sched_time(unsigned int len, u32 rate)
{
- return PSCHED_NS2TICKS((u64)len * NSEC_PER_SEC / rate);
+ u64 ticks = (u64)len * NSEC_PER_SEC;
+
+ do_div(ticks, rate);
+ return PSCHED_NS2TICKS(ticks);
}
/*