summaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-2.6.25/900-cevt_r4k_irq_disable_hazard.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-05-03 05:43:29 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-05-03 05:43:29 +0000
commit21c5ef4c1d5cf43b8055eea98a509412c0ab17c1 (patch)
tree4528a0a88e63fb437b0e9bea548ebad14be7190a /target/linux/atheros/patches-2.6.25/900-cevt_r4k_irq_disable_hazard.patch
parentfe5b22046748c8795afc6c86d9733af6e3087017 (diff)
downloadmaster-31e0f0ae-21c5ef4c1d5cf43b8055eea98a509412c0ab17c1.tar.gz
master-31e0f0ae-21c5ef4c1d5cf43b8055eea98a509412c0ab17c1.tar.bz2
master-31e0f0ae-21c5ef4c1d5cf43b8055eea98a509412c0ab17c1.zip
add .25 patches (kernel boots fine on LS2, LS5, FON2200 and on WRT55AG v2)
SVN-Revision: 11016
Diffstat (limited to 'target/linux/atheros/patches-2.6.25/900-cevt_r4k_irq_disable_hazard.patch')
-rw-r--r--target/linux/atheros/patches-2.6.25/900-cevt_r4k_irq_disable_hazard.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/atheros/patches-2.6.25/900-cevt_r4k_irq_disable_hazard.patch b/target/linux/atheros/patches-2.6.25/900-cevt_r4k_irq_disable_hazard.patch
new file mode 100644
index 0000000000..3b72a9e273
--- /dev/null
+++ b/target/linux/atheros/patches-2.6.25/900-cevt_r4k_irq_disable_hazard.patch
@@ -0,0 +1,12 @@
+Index: linux-2.6.25.1/arch/mips/kernel/cevt-r4k.c
+===================================================================
+--- linux-2.6.25.1.orig/arch/mips/kernel/cevt-r4k.c
++++ linux-2.6.25.1/arch/mips/kernel/cevt-r4k.c
+@@ -205,6 +205,7 @@ static int c0_compare_int_usable(void)
+ while ((int)(read_c0_count() - cnt) <= 0)
+ ; /* Wait for expiry */
+
++ irq_disable_hazard();
+ if (!c0_compare_int_pending())
+ return 0;
+