From: Sam Ravnborg Date: Fri, 26 Dec 2008 23:35:16 +0000 (-0800) Subject: sparc: introduce CONFIG_BITS X-Git-Tag: v2.6.29-rc1~568^2~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fe6875ec5c3ca7f6bcb399b6649ba2b64744df51;p=linux-2.6-omap-h63xx.git sparc: introduce CONFIG_BITS CONFIG_BITS is set to 32 for sparc32 and 64 for sparc64. This allow us to use this symbol in for example header files to ease unification of sparc32 and sparc64. Signed-off-by: Sam Ravnborg Signed-off-by: David S. Miller --- diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index c8c7738f2a3..cd8c585a6b0 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -46,7 +46,11 @@ config ARCH_DEFCONFIG default "arch/sparc/configs/sparc32_defconfig" if SPARC32 default "arch/sparc/configs/sparc64_defconfig" if SPARC64 - +# CONFIG_BITS can be used at source level to get 32/64 bits +config BITS + int + default 32 if SPARC32 + default 64 if SPARC64 config 64BIT def_bool y if SPARC64