hardirq.h 828 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _ALPHA_HARDIRQ_H
  2. #define _ALPHA_HARDIRQ_H
  3. #include <linux/threads.h>
  4. #include <linux/cache.h>
  5. /* entry.S is sensitive to the offsets of these fields */
  6. typedef struct {
  7. unsigned long __softirq_pending;
  8. } ____cacheline_aligned irq_cpustat_t;
  9. #include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
  10. void ack_bad_irq(unsigned int irq);
  11. #define HARDIRQ_BITS 12
  12. /*
  13. * The hardirq mask has to be large enough to have
  14. * space for potentially nestable IRQ sources in the system
  15. * to nest on a single CPU. On Alpha, interrupts are masked at the CPU
  16. * by IPL as well as at the system level. We only have 8 IPLs (UNIX PALcode)
  17. * so we really only have 8 nestable IRQs, but allow some overhead
  18. */
  19. #if (1 << HARDIRQ_BITS) < 16
  20. #error HARDIRQ_BITS is too low!
  21. #endif
  22. #endif /* _ALPHA_HARDIRQ_H */