2008-10-22 23:26:29 -06:00
|
|
|
#ifndef _ASM_X86_HARDIRQ_32_H
|
|
|
|
#define _ASM_X86_HARDIRQ_32_H
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
#include <linux/threads.h>
|
|
|
|
#include <linux/irq.h>
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
unsigned int __softirq_pending;
|
|
|
|
unsigned long idle_timestamp;
|
|
|
|
unsigned int __nmi_count; /* arch dependent */
|
|
|
|
unsigned int apic_timer_irqs; /* arch dependent */
|
2008-12-03 02:39:53 -07:00
|
|
|
unsigned int apic_perf_irqs; /* arch dependent */
|
2007-10-12 15:04:06 -06:00
|
|
|
unsigned int irq0_irqs;
|
2007-10-17 10:04:40 -06:00
|
|
|
unsigned int irq_resched_count;
|
|
|
|
unsigned int irq_call_count;
|
|
|
|
unsigned int irq_tlb_count;
|
|
|
|
unsigned int irq_thermal_count;
|
|
|
|
unsigned int irq_spurious_count;
|
2005-04-16 16:20:36 -06:00
|
|
|
} ____cacheline_aligned irq_cpustat_t;
|
|
|
|
|
|
|
|
DECLARE_PER_CPU(irq_cpustat_t, irq_stat);
|
|
|
|
|
|
|
|
#define __ARCH_IRQ_STAT
|
|
|
|
#define __IRQ_STAT(cpu, member) (per_cpu(irq_stat, cpu).member)
|
|
|
|
|
2008-12-08 20:19:26 -07:00
|
|
|
#define inc_irq_stat(member) (__get_cpu_var(irq_stat).member++)
|
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
void ack_bad_irq(unsigned int irq);
|
|
|
|
#include <linux/irq_cpustat.h>
|
|
|
|
|
2008-10-22 23:26:29 -06:00
|
|
|
#endif /* _ASM_X86_HARDIRQ_32_H */
|