source: trunk/target/linux/ar71xx/patches-2.6.34/901-get_c0_compare_irq_function.patch @ 21082

Last change on this file since 21082 was 21082, checked in by juhosg, 6 years ago

kernel: refresh patches for 2.6.34-rc5 and update md5sum

File size: 963 bytes
  • arch/mips/kernel/traps.c

    a b  
    5151#include <asm/stacktrace.h> 
    5252#include <asm/irq.h> 
    5353#include <asm/uasm.h> 
     54#include <asm/time.h> 
    5455 
    5556extern void check_wait(void); 
    5657extern asmlinkage void r4k_wait(void); 
    void __cpuinit per_cpu_trap_init(void) 
    15011502        if (cpu_has_mips_r2) { 
    15021503                cp0_compare_irq_shift = CAUSEB_TI - CAUSEB_IP; 
    15031504                cp0_compare_irq = (read_c0_intctl() >> INTCTLB_IPTI) & 7; 
     1505                if (get_c0_compare_irq) 
     1506                        cp0_compare_irq = get_c0_compare_irq(); 
    15041507                cp0_perfcount_irq = (read_c0_intctl() >> INTCTLB_IPPCI) & 7; 
    15051508                if (cp0_perfcount_irq == cp0_compare_irq) 
    15061509                        cp0_perfcount_irq = -1; 
  • arch/mips/include/asm/time.h

    a b extern int (*perf_irq)(void); 
    5252 */ 
    5353#ifdef CONFIG_CEVT_R4K_LIB 
    5454extern unsigned int __weak get_c0_compare_int(void); 
     55extern unsigned int __weak get_c0_compare_irq(void); 
    5556extern int r4k_clockevent_init(void); 
    5657#endif 
    5758 
Note: See TracBrowser for help on using the repository browser.