]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
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)
commit6aa2e4e8063114bd7cea8616dd5848d3c64b4c36
tree0daa26d085f163572df0292913e8f0b4818c1558
parent94361cf74a6fca1973d2fed5338d5fb4bcd902fa
IB/mthca: correct log2 calculation

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>
drivers/infiniband/hw/mthca/mthca_qp.c