summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-09-20 14:51:57 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2012-09-20 14:51:57 +0000
commitfd7b2b5141dc3ce723ae54f38645bca44a1b651d (patch)
tree7041e4f519c8a5e29dca135e94f581a0443a1704
parent1067ccf9f789c35c6ceeb0d0b55113ca733fb5db (diff)
downloadmtk-20170518-fd7b2b5141dc3ce723ae54f38645bca44a1b651d.zip
mtk-20170518-fd7b2b5141dc3ce723ae54f38645bca44a1b651d.tar.gz
mtk-20170518-fd7b2b5141dc3ce723ae54f38645bca44a1b651d.tar.bz2
deactivate mips wait instruction for MIPS 74K on Broadcom SoCs
When not removing support for the wait instruction, when ruining on the BCM4706 SoC the system stops after msleep() without an exception. I haven't seen this problem on the other Broadcom SoCs with a 74K CPU, but in the Broadcom SDK it is deactivated for all CPUs of this type. SVN-Revision: 33496
-rw-r--r--target/linux/brcm47xx/patches-3.3/170-fix-74k-cpu.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/patches-3.3/170-fix-74k-cpu.patch b/target/linux/brcm47xx/patches-3.3/170-fix-74k-cpu.patch
new file mode 100644
index 0000000..6eee895
--- /dev/null
+++ b/target/linux/brcm47xx/patches-3.3/170-fix-74k-cpu.patch
@@ -0,0 +1,12 @@
+--- a/arch/mips/kernel/cpu-probe.c
++++ b/arch/mips/kernel/cpu-probe.c
+@@ -209,9 +209,6 @@ void __init check_wait(void)
+ break;
+
+ case CPU_74K:
+- cpu_wait = r4k_wait;
+- if ((c->processor_id & 0xff) >= PRID_REV_ENCODE_332(2, 1, 0))
+- cpu_wait = r4k_wait_irqoff;
+ break;
+
+ case CPU_TX49XX: