diff options
author | David Howells <dhowells@redhat.com> | 2006-12-08 05:37:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:51 -0500 |
commit | ef55d53caa055aedee13e77da82740987dd64f2d (patch) | |
tree | 243bbfca98e504401ea563d6c799ed23c12c08b8 /arch/powerpc/Kconfig | |
parent | 39d61db0edb34d60b83c5e0d62d0e906578cc707 (diff) |
[PATCH] LOG2: Provide ilog2() fallbacks for powerpc
Provide ilog2() fallbacks for powerpc for 32-bit numbers and 64-bit numbers on
ppc64.
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>
Diffstat (limited to 'arch/powerpc/Kconfig')
-rw-r--r-- | arch/powerpc/Kconfig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 97c7a212cdda..56c3c4065eb0 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -43,11 +43,11 @@ config RWSEM_XCHGADD_ALGORITHM | |||
43 | 43 | ||
44 | config ARCH_HAS_ILOG2_U32 | 44 | config ARCH_HAS_ILOG2_U32 |
45 | bool | 45 | bool |
46 | default n | 46 | default y |
47 | 47 | ||
48 | config ARCH_HAS_ILOG2_U64 | 48 | config ARCH_HAS_ILOG2_U64 |
49 | bool | 49 | bool |
50 | default n | 50 | default y if 64BIT |
51 | 51 | ||
52 | config GENERIC_HWEIGHT | 52 | config GENERIC_HWEIGHT |
53 | bool | 53 | bool |