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:
5b0bf5e
)
mlx4_core: Reserve the correct number of MTT segments
author
Roland Dreier
<rolandd@cisco.com>
Wed, 10 Oct 2007 02:59:16 +0000
(19:59 -0700)
committer
Roland Dreier
<rolandd@cisco.com>
Wed, 10 Oct 2007 02:59:16 +0000
(19:59 -0700)
Taking ilog2(dev->caps.reserved_mtts) to find out the order to pass to
the MTT buddy allocator will do the wrong thing if reserved_mtts is ever
not a power of 2. Be safe and use fls(dev->caps.reserved_mtts - 1).
Signed-off-by: Roland Dreier <rolandd@cisco.com>
No differences found