From: Eric Dumazet Date: Fri, 4 Jan 2008 04:40:01 +0000 (-0800) Subject: [NET]: Avoid divides in net/core/gen_estimator.c X-Git-Tag: upstream/snapshot3+hdmi~28343^2~878 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=789675e216617b1331875c42a81f58227a06df91;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [NET]: Avoid divides in net/core/gen_estimator.c We can void divides (as seen with CONFIG_CC_OPTIMIZE_FOR_SIZE=y on x86) changing ((HZ< Signed-off-by: David S. Miller --- diff --git a/net/core/gen_estimator.c b/net/core/gen_estimator.c index daadbcc..86037d1 100644 --- a/net/core/gen_estimator.c +++ b/net/core/gen_estimator.c @@ -135,7 +135,7 @@ skip: } if (!list_empty(&elist[idx].list)) - mod_timer(&elist[idx].timer, jiffies + ((HZ<list, &elist[idx].list); return 0;