hardirq.h 948 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_POWERPC_HARDIRQ_H
  3. #define _ASM_POWERPC_HARDIRQ_H
  4. #include <linux/threads.h>
  5. #include <linux/irq.h>
  6. typedef struct {
  7. unsigned int __softirq_pending;
  8. unsigned int timer_irqs_event;
  9. unsigned int broadcast_irqs_event;
  10. unsigned int timer_irqs_others;
  11. unsigned int pmu_irqs;
  12. unsigned int mce_exceptions;
  13. unsigned int spurious_irqs;
  14. unsigned int sreset_irqs;
  15. #ifdef CONFIG_PPC_WATCHDOG
  16. unsigned int soft_nmi_irqs;
  17. #endif
  18. #ifdef CONFIG_PPC_DOORBELL
  19. unsigned int doorbell_irqs;
  20. #endif
  21. } ____cacheline_aligned irq_cpustat_t;
  22. DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
  23. #define __ARCH_IRQ_STAT
  24. #define __ARCH_IRQ_EXIT_IRQS_DISABLED
  25. static inline void ack_bad_irq(unsigned int irq)
  26. {
  27. printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq);
  28. }
  29. extern u64 arch_irq_stat_cpu(unsigned int cpu);
  30. #define arch_irq_stat_cpu arch_irq_stat_cpu
  31. #endif /* _ASM_POWERPC_HARDIRQ_H */