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