fix depends, from sn9
[openwrt.git] / target / linux / atheros / patches-2.6.24 / 900-cevt_r4k_irq_disable_hazard.patch
1 Index: linux-2.6.24.7/arch/mips/kernel/cevt-r4k.c
2 ===================================================================
3 --- linux-2.6.24.7.orig/arch/mips/kernel/cevt-r4k.c
4 +++ linux-2.6.24.7/arch/mips/kernel/cevt-r4k.c
5 @@ -205,6 +205,7 @@ static int c0_compare_int_usable(void)
6         while ((int)(read_c0_count() - cnt) <= 0)
7                 ;       /* Wait for expiry  */
8  
9 +       irq_disable_hazard();
10         if (!c0_compare_int_pending())
11                 return 0;
12