hardirq.h 715 B

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