hardirq.h 767 B

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