/arch/powerpc/include/asm/hardirq.h

http://github.com/mirrors/linux · C Header · 39 lines · 31 code · 7 blank · 1 comment · 0 complexity · 78b645948e46f4dae9f456cace6f67d6 MD5 · raw file

  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 hmi_exceptions;
  15. unsigned int sreset_irqs;
  16. #ifdef CONFIG_PPC_WATCHDOG
  17. unsigned int soft_nmi_irqs;
  18. #endif
  19. #ifdef CONFIG_PPC_DOORBELL
  20. unsigned int doorbell_irqs;
  21. #endif
  22. } ____cacheline_aligned irq_cpustat_t;
  23. DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
  24. #define __ARCH_IRQ_STAT
  25. #define __ARCH_IRQ_EXIT_IRQS_DISABLED
  26. static inline void ack_bad_irq(unsigned int irq)
  27. {
  28. printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq);
  29. }
  30. extern u64 arch_irq_stat_cpu(unsigned int cpu);
  31. #define arch_irq_stat_cpu arch_irq_stat_cpu
  32. #endif /* _ASM_POWERPC_HARDIRQ_H */