Skip to contentSkip to conversation

ARM: vfp: only advertise VFPv4 in hwcaps if CONFIG_VFPv3 is enabled

PATCH New Will Deacon 1 participant 1 message Jul 26, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: vfp: only advertise VFPv4 in hwcaps if CONFIG_VFPv3 is enabled

VFPv4 support depends on the VFPv3 context save/restore code, so only advertise support in the hwcaps if the kernel can actually handle it.

---
Pretty boring, but I guess a candidate for -stable.

 arch/arm/vfp/vfpmodule.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/vfp/vfpmodule.c +2 -0
index 58696192..06137c7 100644
@@ -713,8 +713,10 @@ static int __init vfp_init(void)
 			if ((fmrx(MVFR1) & 0x000fff00) == 0x00011100)
 				elf_hwcap |= HWCAP_NEON;
 #endif
+#ifdef CONFIG_VFPv3
 			if ((fmrx(MVFR1) & 0xf0000000) == 0x10000000)
 				elf_hwcap |= HWCAP_VFPv4;
+#endif
 		}
 	}
 	return 0;
Signature · 1 line
1.7.4.1