From: Jack Morgenstein Date: Sat, 10 Dec 2005 00:38:04 +0000 (-0800) Subject: IB/mthca: correct log2 calculation X-Git-Tag: v2.6.16-rc1~678^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aa2e4e8063114bd7cea8616dd5848d3c64b4c36;p=pandora-kernel.git 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 Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed