summaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-2.6.26/900-cevt_r4k_irq_disable_hazard.patch
blob: f60325ee2f70a2c4f695770ffb79722cd355371b (plain)
1
2
3
4
5
6
7
8
9
10
--- a/arch/mips/kernel/cevt-r4k.c
+++ b/arch/mips/kernel/cevt-r4k.c
@@ -205,6 +205,7 @@
 	while ((int)(read_c0_count() - cnt) <= 0)
 		;	/* Wait for expiry  */
 
+	irq_disable_hazard();
 	if (!c0_compare_int_pending())
 		return 0;