Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / powerpc / include / asm / hardirq.h
blob5986d473722b5eef58530689f488d129c1669589
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_HARDIRQ_H
3 #define _ASM_POWERPC_HARDIRQ_H
5 #include <linux/threads.h>
6 #include <linux/irq.h>
8 typedef struct {
9 unsigned int __softirq_pending;
10 unsigned int timer_irqs_event;
11 unsigned int timer_irqs_others;
12 unsigned int pmu_irqs;
13 unsigned int mce_exceptions;
14 unsigned int spurious_irqs;
15 unsigned int hmi_exceptions;
16 unsigned int sreset_irqs;
17 #ifdef CONFIG_PPC_WATCHDOG
18 unsigned int soft_nmi_irqs;
19 #endif
20 #ifdef CONFIG_PPC_DOORBELL
21 unsigned int doorbell_irqs;
22 #endif
23 } ____cacheline_aligned irq_cpustat_t;
25 DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
27 #define __ARCH_IRQ_STAT
29 #define local_softirq_pending() __this_cpu_read(irq_stat.__softirq_pending)
31 #define __ARCH_SET_SOFTIRQ_PENDING
32 #define __ARCH_IRQ_EXIT_IRQS_DISABLED
34 #define set_softirq_pending(x) __this_cpu_write(irq_stat.__softirq_pending, (x))
35 #define or_softirq_pending(x) __this_cpu_or(irq_stat.__softirq_pending, (x))
37 static inline void ack_bad_irq(unsigned int irq)
39 printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq);
42 extern u64 arch_irq_stat_cpu(unsigned int cpu);
43 #define arch_irq_stat_cpu arch_irq_stat_cpu
45 #endif /* _ASM_POWERPC_HARDIRQ_H */