summaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-2.6.25/900-cevt_r4k_irq_disable_hazard.patch
blob: f35e0d2fa79dcf4ec1a768d498356e9c6b576ee1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Index: linux-2.6.25.4/arch/mips/kernel/cevt-r4k.c
===================================================================
--- linux-2.6.25.4.orig/arch/mips/kernel/cevt-r4k.c
+++ linux-2.6.25.4/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;