openwrtv4/target/linux/atheros/patches-2.6.24/900-cevt_r4k_irq_disable_hazard.patch
Gabor Juhos 408fd8097f enable 2.6.24 to run on ar53xx
SVN-Revision: 10957
2008-04-27 17:40:02 +00:00

12 lines
422 B
Diff

Index: linux-2.6.24.2/arch/mips/kernel/cevt-r4k.c
===================================================================
--- linux-2.6.24.2.orig/arch/mips/kernel/cevt-r4k.c
+++ linux-2.6.24.2/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;