hardirq.h 686 B

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