hardirq.h 602 B

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