commit | 6aa2e4e8063114bd7cea8616dd5848d3c64b4c36 | [log] [tgz] |
---|---|---|
author | Jack Morgenstein <jackm@mellanox.co.il> | Fri Dec 09 16:38:04 2005 -0800 |
committer | Roland Dreier <rolandd@cisco.com> | Fri Dec 09 16:38:04 2005 -0800 |
tree | 0daa26d085f163572df0292913e8f0b4818c1558 | |
parent | 94361cf74a6fca1973d2fed5338d5fb4bcd902fa [diff] |
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>