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