From: David Howells Date: Fri, 8 Dec 2006 10:37:51 +0000 (-0800) Subject: [PATCH] LOG2: Alter roundup_pow_of_two() so that it can use a ilog2() on a constant X-Git-Tag: v2.6.20-rc1~34^2~261 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=312a0c170945b49f319960afd2e492c05f9dd551;p=pandora-kernel.git [PATCH] LOG2: Alter roundup_pow_of_two() so that it can use a ilog2() on a constant Alter roundup_pow_of_two() 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. This permits the function to be used to initialise variables. Signed-off-by: David Howells Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed