hardirq.h 854 B

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