hardirq.h 470 B

12345678910111213141516171819202122232425
  1. #ifdef __KERNEL__
  2. #ifndef __ASM_HARDIRQ_H
  3. #define __ASM_HARDIRQ_H
  4. #include <asm/irq.h>
  5. #if NR_IRQS > 256
  6. #define HARDIRQ_BITS 9
  7. #else
  8. #define HARDIRQ_BITS 8
  9. #endif
  10. /*
  11. * The hardirq mask has to be large enough to have
  12. * space for potentially all IRQ sources in the system
  13. * nesting on a single CPU:
  14. */
  15. #if (1 << HARDIRQ_BITS) < NR_IRQS
  16. # error HARDIRQ_BITS is too low!
  17. #endif
  18. #include <asm-generic/hardirq.h>
  19. #endif /* __ASM_HARDIRQ_H */
  20. #endif /* __KERNEL__ */