hardirq.h 605 B

1234567891011121314151617181920212223242526
  1. #ifndef __M68K_HARDIRQ_H
  2. #define __M68K_HARDIRQ_H
  3. #include <linux/config.h>
  4. #include <linux/threads.h>
  5. #include <linux/cache.h>
  6. /* entry.S is sensitive to the offsets of these fields */
  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. #define HARDIRQ_BITS 8
  12. /*
  13. * The hardirq mask has to be large enough to have
  14. * space for potentially all IRQ sources in the system
  15. * nesting on a single CPU:
  16. */
  17. #if (1 << HARDIRQ_BITS) < NR_IRQS
  18. # error HARDIRQ_BITS is too low!
  19. #endif
  20. #endif