]> err.no Git - linux-2.6/commit
[NET]: Avoid divides in net/core/gen_estimator.c
authorEric Dumazet <dada1@cosmosbay.com>
Fri, 4 Jan 2008 04:40:01 +0000 (20:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:00:35 +0000 (15:00 -0800)
commit789675e216617b1331875c42a81f58227a06df91
treebec5c846982ef2ebe5e6970242be146531add9b1
parente870a8efcddaaa3da7e180b6ae21239fb96aa2bb
[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<<idx)/4) to ((HZ/4) << idx)

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/gen_estimator.c