source: trunk/target/linux/ramips/patches-3.3/001-mips-add-cp0-compare-irq-function.patch @ 31403

Last change on this file since 31403 was 31403, checked in by juhosg, 5 years ago

ramips: add support for 3.3

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

    a b  
    5454#include <asm/types.h> 
    5555#include <asm/stacktrace.h> 
    5656#include <asm/uasm.h> 
     57#include <asm/time.h> 
    5758 
    5859extern void check_wait(void); 
    5960extern asmlinkage void r4k_wait(void); 
    void __cpuinit per_cpu_trap_init(void) 
    15931594        if (cpu_has_mips_r2) { 
    15941595                cp0_compare_irq_shift = CAUSEB_TI - CAUSEB_IP; 
    15951596                cp0_compare_irq = (read_c0_intctl() >> INTCTLB_IPTI) & 7; 
     1597                if (get_c0_compare_irq) 
     1598                        cp0_compare_irq = get_c0_compare_irq(); 
    15961599                cp0_perfcount_irq = (read_c0_intctl() >> INTCTLB_IPPCI) & 7; 
    15971600                if (cp0_perfcount_irq == cp0_compare_irq) 
    15981601                        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.