hardirq.h 620 B

12345678910111213141516171819202122232425262728
  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. extern void ack_bad_irq(unsigned int irq);
  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