51 lines
1.3 KiB
C
51 lines
1.3 KiB
C
#ifndef __ASM_L_HARDIRQ_H
|
|
#define __ASM_L_HARDIRQ_H
|
|
|
|
#include <linux/cache.h>
|
|
#include <linux/percpu.h>
|
|
|
|
typedef struct {
|
|
unsigned int __softirq_pending;
|
|
unsigned int __nmi_count; /* arch dependent */
|
|
#ifdef CONFIG_L_LOCAL_APIC
|
|
unsigned int apic_timer_irqs; /* arch dependent */
|
|
unsigned int irq_spurious_count;
|
|
unsigned int icr_read_retry_count;
|
|
unsigned int apic_irq_work_irqs;
|
|
#endif
|
|
#ifdef CONFIG_SMP
|
|
unsigned int irq_resched_count;
|
|
unsigned int irq_call_count;
|
|
# ifdef CONFIG_E2K
|
|
/*
|
|
* irq_tlb_count is double-counted in irq_call_count, so it must be
|
|
* subtracted from irq_call_count when displaying irq_call_count
|
|
*/
|
|
unsigned int irq_tlb_count;
|
|
# endif
|
|
#endif
|
|
#if (IS_ENABLED(CONFIG_RDMA) || IS_ENABLED(CONFIG_RDMA_SIC) || \
|
|
IS_ENABLED(CONFIG_RDMA_NET))
|
|
unsigned int irq_rdma_count;
|
|
#endif
|
|
} ____cacheline_aligned irq_cpustat_t;
|
|
|
|
DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
|
|
|
|
extern void ack_bad_irq(unsigned int irq);
|
|
|
|
#define __ARCH_IRQ_STAT
|
|
#define __IRQ_STAT(cpu, member) (per_cpu(irq_stat, cpu).member)
|
|
|
|
#define inc_irq_stat(member) __IRQ_STAT(raw_smp_processor_id(), member) ++
|
|
|
|
extern u64 arch_irq_stat_cpu(unsigned int cpu);
|
|
#define arch_irq_stat_cpu arch_irq_stat_cpu
|
|
|
|
extern u64 arch_irq_stat(void);
|
|
#define arch_irq_stat arch_irq_stat
|
|
|
|
#include <linux/irq_cpustat.h>
|
|
|
|
#endif /* __ASM_L_HARDIRQ_H */
|