]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/kernel/setup.c
[ARM] 3470/1: Clear the HWCAP bits for the disabled kernel features
[linux-2.6-omap-h63xx.git] / arch / arm / kernel / setup.c
index 4375284039595f93f2ce9cf91b27abd3fb677375..8cff73e668b38be7d93d448c44d5f731e3452eac 100644 (file)
@@ -322,6 +322,12 @@ static void __init setup_processor(void)
        sprintf(system_utsname.machine, "%s%c", list->arch_name, ENDIANNESS);
        sprintf(elf_platform, "%s%c", list->elf_name, ENDIANNESS);
        elf_hwcap = list->elf_hwcap;
+#ifndef CONFIG_ARM_THUMB
+       elf_hwcap &= ~HWCAP_THUMB;
+#endif
+#ifndef CONFIG_VFP
+       elf_hwcap &= ~HWCAP_VFP;
+#endif
 
        cpu_proc_init();
 }