提交 fc33cc72 编写于 作者: E Eric Dumazet 提交者: David S. Miller

netem: fix build error on 32bit arches

ERROR: "__udivdi3" [net/sched/sch_netem.ko] undefined!
Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
Acked-by: NHagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8aa953d0
......@@ -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);
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册