hardirq.h 709 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __ASM_HARDIRQ_H
  2. #define __ASM_HARDIRQ_H
  3. #include <linux/cache.h>
  4. #include <linux/threads.h>
  5. #include <asm/irq.h>
  6. #define NR_IPI 7
  7. typedef struct {
  8. unsigned int __softirq_pending;
  9. #ifdef CONFIG_SMP
  10. unsigned int ipi_irqs[NR_IPI];
  11. #endif
  12. } ____cacheline_aligned irq_cpustat_t;
  13. #include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
  14. #define __inc_irq_stat(cpu, member) __IRQ_STAT(cpu, member)++
  15. #define __get_irq_stat(cpu, member) __IRQ_STAT(cpu, member)
  16. #ifdef CONFIG_SMP
  17. u64 smp_irq_stat_cpu(unsigned int cpu);
  18. #else
  19. #define smp_irq_stat_cpu(cpu) 0
  20. #endif
  21. #define arch_irq_stat_cpu smp_irq_stat_cpu
  22. #define __ARCH_IRQ_EXIT_IRQS_DISABLED 1
  23. #endif /* __ASM_HARDIRQ_H */