projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bffb77
)
ARM i.MX51: return gracefully on different socs
author
Sascha Hauer
<s.hauer@pengutronix.de>
Thu, 4 Nov 2010 22:08:17 +0000
(23:08 +0100)
committer
Sascha Hauer
<s.hauer@pengutronix.de>
Wed, 24 Nov 2010 09:09:01 +0000
(10:09 +0100)
Code called from an initcall can be maybe called for
machines it's not intended for. So check for valid
machines and return gracefully if an incompatible machine
is found.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx5/cpu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mach-mx5/cpu.c
b/arch/arm/mach-mx5/cpu.c
index eaacb6e9b5d0b417d0b78d56a8ebb406cb8ee9cd..061ab701b6d92bb4ad92abb4875b3bdb4ddf81a9 100644
(file)
--- a/
arch/arm/mach-mx5/cpu.c
+++ b/
arch/arm/mach-mx5/cpu.c
@@
-79,6
+79,9
@@
EXPORT_SYMBOL(mx51_revision);
*/
static int __init mx51_neon_fixup(void)
{
+ if (!cpu_is_mx51())
+ return 0;
+
if (mx51_revision() < MX51_CHIP_REV_3_0 && (elf_hwcap & HWCAP_NEON)) {
elf_hwcap &= ~HWCAP_NEON;
pr_info("Turning off NEON support, detected broken NEON implementation\n");