RE: free bootmem feedback patch

David Mosberger
2004-07-15T20:21:35Z

>>>>> On Thu, 15 Jul 2004 12:11:07 -0700, "Luck, Tony" <tony.luck@intel.com> said:

Tony> Notes and Caveats: 1) Is there a define someplace for
Tony> log2(BITS_PER_LONG)? I couldn't find one, which is why I
Tony> calculate the "order" in this patch.

BITS_PER_LONG is a power-of-two, so ffs() will do. For more general
cases, you may want asm/page.h:get_order() instead.

--david