]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
[ARM] 4054/1: ep93xx: add HWCAP_CRUNCH
authorLennert Buytenhek <buytenh@wantstofly.org>
Sun, 17 Dec 2006 23:59:10 +0000 (00:59 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 18 Dec 2006 00:14:54 +0000 (00:14 +0000)
Add HWCAP_CRUNCH so that the dynamic linker knows whether it can
use Crunch-optimised libraries or not.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/setup.c
arch/arm/mach-ep93xx/core.c
include/asm-arm/elf.h

index cf2bd42428035079943592d45a65374f3081dd57..bbab134cd82d3fa547d72d5d2514591da9f52d92 100644 (file)
@@ -855,6 +855,7 @@ static const char *hwcap_str[] = {
        "edsp",
        "java",
        "iwmmxt",
+       "crunch",
        NULL
 };
 
index d649b39711d49296423963c50e9cd2a9753f5bf0..6b26346191c040f9949094232a7cf8e072949161 100644 (file)
@@ -477,4 +477,8 @@ void __init ep93xx_init_devices(void)
 
        platform_device_register(&ep93xx_rtc_device);
        platform_device_register(&ep93xx_ohci_device);
+
+#ifdef CONFIG_CRUNCH
+       elf_hwcap |= HWCAP_CRUNCH;
+#endif
 }
index 642382d2c9f051eec79f4b13ffcfc7cbc4a42432..3679a8a8922ee97778818e9fe75e7dd6ba4cf195 100644 (file)
@@ -52,6 +52,7 @@ typedef struct user_fp elf_fpregset_t;
 #define HWCAP_EDSP     128
 #define HWCAP_JAVA     256
 #define HWCAP_IWMMXT   512
+#define HWCAP_CRUNCH   1024
 
 #ifdef __KERNEL__
 #ifndef __ASSEMBLY__