IB/mthca: correct log2 calculation
authorJack Morgenstein <jackm@mellanox.co.il>
Sat, 10 Dec 2005 00:38:04 +0000 (16:38 -0800)
committerRoland Dreier <rolandd@cisco.com>
Sat, 10 Dec 2005 00:38:04 +0000 (16:38 -0800)
Fix thinko in rd_atomic calculation: ffs(x) - 1 does not find the next
power of 2 -- it should be fls(x - 1).

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found