From: Stephen Boyd Date: Mon, 18 Mar 2013 18:44:14 +0000 (+0100) Subject: ARM: 7679/1: Clear IDIVT hwcap if CONFIG_ARM_THUMB=n X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c40e3641670eb6ebfdb71d4b0c775416ef95f4f0;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git ARM: 7679/1: Clear IDIVT hwcap if CONFIG_ARM_THUMB=n Don't advertise support for the SDIV/UDIV thumb instructions if the kernel is not compiled with support for thumb userspace. This is in line with how we remove the THUMB hwcap in these configurations. Acked-by: Will Deacon Cc: Stepan Moskovchenko Signed-off-by: Stephen Boyd Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 3f6cbb2e3ed..e2c8bbffb0b 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -484,7 +484,7 @@ static void __init setup_processor(void) list->elf_name, ENDIANNESS); elf_hwcap = list->elf_hwcap; #ifndef CONFIG_ARM_THUMB - elf_hwcap &= ~HWCAP_THUMB; + elf_hwcap &= ~(HWCAP_THUMB | HWCAP_IDIVT); #endif feat_v6_fixup();