hardirq.h 583 B

1234567891011121314151617181920212223
  1. #ifndef __ASM_HARDIRQ_H
  2. #define __ASM_HARDIRQ_H
  3. #include <linux/threads.h>
  4. #include <linux/irq.h>
  5. typedef struct {
  6. unsigned int __softirq_pending;
  7. unsigned long idle_timestamp;
  8. unsigned int __nmi_count; /* arch dependent */
  9. unsigned int apic_timer_irqs; /* arch dependent */
  10. } ____cacheline_aligned irq_cpustat_t;
  11. DECLARE_PER_CPU(irq_cpustat_t, irq_stat);
  12. extern irq_cpustat_t irq_stat[];
  13. #define __ARCH_IRQ_STAT
  14. #define __IRQ_STAT(cpu, member) (per_cpu(irq_stat, cpu).member)
  15. void ack_bad_irq(unsigned int irq);
  16. #include <linux/irq_cpustat.h>
  17. #endif /* __ASM_HARDIRQ_H */