hardirq.h 761 B

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