Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212478
b: refs/heads/master
c: 33d7c5c
h: refs/heads/master
v: v3
  • Loading branch information
Amit Kucheria authored and Nicolas Pitre committed Oct 2, 2010
1 parent dd78fab commit a58c4a7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c62d0f2ac18d38265ccf0e821e6afee60a0c89b5
refs/heads/master: 33d7c5c1c808ea47d85630ac2dd98490d7df0ff4
19 changes: 19 additions & 0 deletions trunk/arch/arm/mach-mx5/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,25 @@ int mx51_revision(void)
}
EXPORT_SYMBOL(mx51_revision);

#ifdef CONFIG_NEON

/*
* All versions of the silicon before Rev. 3 have broken NEON implementations.
* Dependent on link order - so the assumption is that vfp_init is called
* before us.
*/
static int __init mx51_neon_fixup(void)
{
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");
}
return 0;
}

late_initcall(mx51_neon_fixup);
#endif

static int __init post_cpu_init(void)
{
unsigned int reg;
Expand Down

0 comments on commit a58c4a7

Please sign in to comment.