Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc33cc72 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

netem: fix build error on 32bit arches



ERROR: "__udivdi3" [net/sched/sch_netem.ko] undefined!

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Acked-by: default avatarHagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8aa953d0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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);
}

/*