openwrtv3/target/linux/atheros/patches-2.6.26/900-cevt_r4k_irq_disable_hazard.patch
Gabor Juhos a1bf28950d refresh 2.6.26 patches
SVN-Revision: 13135
2008-11-06 20:55:33 +00:00

10 lines
273 B
Diff

--- a/arch/mips/kernel/cevt-r4k.c
+++ b/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;