Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1#ifndef _ASM_POWERPC_HARDIRQ_H
2#define _ASM_POWERPC_HARDIRQ_H
3
4#include <linux/threads.h>
5#include <linux/irq.h>
6
7typedef struct {
8 unsigned int __softirq_pending;
9 unsigned int timer_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
24DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
25
26#define __ARCH_IRQ_STAT
27
28#define local_softirq_pending() __this_cpu_read(irq_stat.__softirq_pending)
29
30#define __ARCH_SET_SOFTIRQ_PENDING
31
32#define set_softirq_pending(x) __this_cpu_write(irq_stat.__softirq_pending, (x))
33#define or_softirq_pending(x) __this_cpu_or(irq_stat.__softirq_pending, (x))
34
35static inline void ack_bad_irq(unsigned int irq)
36{
37 printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq);
38}
39
40extern u64 arch_irq_stat_cpu(unsigned int cpu);
41#define arch_irq_stat_cpu arch_irq_stat_cpu
42
43#endif /* _ASM_POWERPC_HARDIRQ_H */