[openib-general] Re: [git patch review 2/7] IB/mthca: correct log2 calculation

Andrew Morton akpm at osdl.org
Sat Dec 17 12:38:16 PST 2005


Roland Dreier <rolandd at cisco.com> wrote:
>
> Fix thinko in rd_atomic calculation: ffs(x) - 1 does not find the next
> power of 2 -- it should be fls(x - 1).

Please use round_up_pow_of_two().



More information about the general mailing list