git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cb5734
)
[INET]: Avoid an integer divide in rt_garbage_collect()
author
Eric Dumazet
<dada1@cosmosbay.com>
Fri, 21 Dec 2007 09:49:07 +0000
(
01:49
-0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Jan 2008 22:59:57 +0000
(14:59 -0800)
Since 'goal' is a signed int, compiler may emit an integer divide
to compute goal/2.
Using a right shift is OK here and less expensive.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c
patch
|
blob
|
history
diff --cc
net/ipv4/route.c
Simple merge