hardirq.h 576 B

1234567891011121314151617181920212223242526
  1. #ifndef __H8300_HARDIRQ_H
  2. #define __H8300_HARDIRQ_H
  3. #include <linux/kernel.h>
  4. #include <linux/threads.h>
  5. #include <linux/interrupt.h>
  6. #include <linux/irq.h>
  7. typedef struct {
  8. unsigned int __softirq_pending;
  9. } ____cacheline_aligned irq_cpustat_t;
  10. #include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
  11. #define HARDIRQ_BITS 8
  12. /*
  13. * The hardirq mask has to be large enough to have
  14. * space for potentially all IRQ sources in the system
  15. * nesting on a single CPU:
  16. */
  17. #if (1 << HARDIRQ_BITS) < NR_IRQS
  18. # error HARDIRQ_BITS is too low!
  19. #endif
  20. #endif