]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] LOG2: Alter get_order() so that it can make use of ilog2() on a constant
authorDavid Howells <dhowells@redhat.com>
Fri, 8 Dec 2006 10:37:52 +0000 (02:37 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 8 Dec 2006 16:28:51 +0000 (08:28 -0800)
commit39d61db0edb34d60b83c5e0d62d0e906578cc707
tree6bbf32fe84eaa8bd8e194aab278274039d2d6440
parent312a0c170945b49f319960afd2e492c05f9dd551
[PATCH] LOG2: Alter get_order() so that it can make use of ilog2() on a constant

Alter get_order() so that it can make use of ilog2() on a constant to produce
a constant value, retaining the ability for an arch to override it in the
non-const case.

Signed-off-by: David Howells <dhowells@redhat.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-generic/page.h