hardirq.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _ASM_POWERPC_HARDIRQ_H
  2. #define _ASM_POWERPC_HARDIRQ_H
  3. #include <linux/threads.h>
  4. #include <linux/irq.h>
  5. typedef struct {
  6. unsigned int __softirq_pending;
  7. unsigned int timer_irqs_event;
  8. unsigned int timer_irqs_others;
  9. unsigned int pmu_irqs;
  10. unsigned int mce_exceptions;
  11. unsigned int spurious_irqs;
  12. unsigned int hmi_exceptions;
  13. #ifdef CONFIG_PPC_DOORBELL
  14. unsigned int doorbell_irqs;
  15. #endif
  16. } ____cacheline_aligned irq_cpustat_t;
  17. DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
  18. #define __ARCH_IRQ_STAT
  19. #define local_softirq_pending() __this_cpu_read(irq_stat.__softirq_pending)
  20. #define __ARCH_SET_SOFTIRQ_PENDING
  21. #define set_softirq_pending(x) __this_cpu_write(irq_stat.__softirq_pending, (x))
  22. #define or_softirq_pending(x) __this_cpu_or(irq_stat.__softirq_pending, (x))
  23. static inline void ack_bad_irq(unsigned int irq)
  24. {
  25. printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq);
  26. }
  27. extern u64 arch_irq_stat_cpu(unsigned int cpu);
  28. #define arch_irq_stat_cpu arch_irq_stat_cpu
  29. #endif /* _ASM_POWERPC_HARDIRQ_H */