hardirq.h 804 B

123456789101112131415161718192021222324252627
  1. #ifndef _ASM_POWERPC_HARDIRQ_H
  2. #define _ASM_POWERPC_HARDIRQ_H
  3. #include <asm/irq.h>
  4. #include <asm/bug.h>
  5. /* The __last_jiffy_stamp field is needed to ensure that no decrementer
  6. * interrupt is lost on SMP machines. Since on most CPUs it is in the same
  7. * cache line as local_irq_count, it is cheap to access and is also used on UP
  8. * for uniformity.
  9. */
  10. typedef struct {
  11. unsigned int __softirq_pending; /* set_bit is used on this */
  12. unsigned int __last_jiffy_stamp;
  13. } ____cacheline_aligned irq_cpustat_t;
  14. #include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
  15. #define last_jiffy_stamp(cpu) __IRQ_STAT((cpu), __last_jiffy_stamp)
  16. static inline void ack_bad_irq(int irq)
  17. {
  18. printk(KERN_CRIT "illegal vector %d received!\n", irq);
  19. BUG();
  20. }
  21. #endif /* _ASM_POWERPC_HARDIRQ_H */