projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7e416e
)
ARM: 7483/1: vfp: only advertise VFPv4 in hwcaps if CONFIG_VFPv3 is enabled
author
Will Deacon
<will.deacon@arm.com>
Fri, 3 Aug 2012 16:24:14 +0000
(17:24 +0100)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Sat, 11 Aug 2012 08:15:57 +0000
(09:15 +0100)
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
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/vfp/vfpmodule.c
b/arch/arm/vfp/vfpmodule.c
index fb849d044bde9b231d481201c985f84cc37c0a3d..c834b32af275d73d4cd760efeb4a365e940f1df7 100644
(file)
--- a/
arch/arm/vfp/vfpmodule.c
+++ b/
arch/arm/vfp/vfpmodule.c
@@
-719,8
+719,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;