]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] 4121/1: ep93xx: move setting of HWCAP_CRUNCH
authorLennert Buytenhek <buytenh@wantstofly.org>
Sun, 4 Feb 2007 23:35:37 +0000 (00:35 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 8 Feb 2007 14:48:13 +0000 (14:48 +0000)
Move the setting of HWCAP_CRUNCH to kernel/crunch.c, where it belongs.

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

index cec83783206e335a11f9a88f225ad3eba3ab6620..627d79414c9d68212382eaefe64af6f896035509 100644 (file)
@@ -75,6 +75,7 @@ static struct notifier_block crunch_notifier_block = {
 static int __init crunch_init(void)
 {
        thread_register_notifier(&crunch_notifier_block);
+       elf_hwcap |= HWCAP_CRUNCH;
 
        return 0;
 }
index 913ea4328b2f86be6a1c30e9f84d44d7cd6b84cd..5d2739abd9609e959e21a9e8f50cc615ae3622dc 100644 (file)
@@ -475,8 +475,4 @@ 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
 }