ARM: 7483/1: vfp: only advertise VFPv4 in hwcaps if CONFIG_VFPv3 is enabled
authorWill Deacon <will.deacon@arm.com>
Fri, 3 Aug 2012 16:24:14 +0000 (17:24 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 11 Aug 2012 08:15:57 +0000 (09:15 +0100)
commit3d9fb0038a9b02febb01efc79a4a5d97f1822a90
treeed969703896852d5f83a76e0fb05edb0eabe7692
parentf7e416eb923d0f9ff1e5e9b5c0e8b75ddd7db865
ARM: 7483/1: 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.

Cc: <stable@vger.kernel.org> # 3.1+
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/vfp/vfpmodule.c