X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Fpatches-2.6.32%2F901-get_c0_compare_irq_function.patch;fp=target%2Flinux%2Far71xx%2Fpatches-2.6.32%2F901-get_c0_compare_irq_function.patch;h=babe906eb10818fec3d1e6050e1372da49595b7c;hb=7240ca9161d1de75478763f3ddccd55a6451c6de;hp=0000000000000000000000000000000000000000;hpb=a5952e83e75f4f00149f2a9f4d828f49a15ce953;p=openwrt-10.03%2F.git diff --git a/target/linux/ar71xx/patches-2.6.32/901-get_c0_compare_irq_function.patch b/target/linux/ar71xx/patches-2.6.32/901-get_c0_compare_irq_function.patch new file mode 100644 index 000000000..babe906eb --- /dev/null +++ b/target/linux/ar71xx/patches-2.6.32/901-get_c0_compare_irq_function.patch @@ -0,0 +1,29 @@ +--- a/arch/mips/kernel/traps.c ++++ b/arch/mips/kernel/traps.c +@@ -48,6 +48,7 @@ + #include + #include + #include ++#include + + extern void check_wait(void); + extern asmlinkage void r4k_wait(void); +@@ -1537,6 +1538,8 @@ void __cpuinit per_cpu_trap_init(void) + */ + if (cpu_has_mips_r2) { + cp0_compare_irq = (read_c0_intctl() >> 29) & 7; ++ if (get_c0_compare_irq) ++ cp0_compare_irq = get_c0_compare_irq(); + cp0_perfcount_irq = (read_c0_intctl() >> 26) & 7; + if (cp0_perfcount_irq == cp0_compare_irq) + cp0_perfcount_irq = -1; +--- a/arch/mips/include/asm/time.h ++++ b/arch/mips/include/asm/time.h +@@ -52,6 +52,7 @@ extern int (*perf_irq)(void); + */ + #ifdef CONFIG_CEVT_R4K_LIB + extern unsigned int __weak get_c0_compare_int(void); ++extern unsigned int __weak get_c0_compare_irq(void); + extern int r4k_clockevent_init(void); + #endif +