Lines Matching refs:cpu
31 #define hardirq_trylock(cpu) (local_irq_count(cpu) == 0) argument
32 #define hardirq_endlock(cpu) do { } while (0) argument
34 #define irq_enter(cpu, irq) (local_irq_count(cpu)++) argument
35 #define irq_exit(cpu, irq) (local_irq_count(cpu)--) argument
57 static inline void release_irqlock(int cpu) in release_irqlock() argument
60 if (global_irq_holder == (unsigned char) cpu) { in release_irqlock()
66 static inline void irq_enter(int cpu, int irq) in irq_enter() argument
68 ++local_irq_count(cpu); in irq_enter()
77 static inline void irq_exit(int cpu, int irq) in irq_exit() argument
79 --local_irq_count(cpu); in irq_exit()
82 static inline int hardirq_trylock(int cpu) in hardirq_trylock() argument
84 return !local_irq_count(cpu) && !test_bit(0,&global_irq_lock); in hardirq_trylock()
87 #define hardirq_endlock(cpu) do { } while (0) argument