2008-10-23 13:26:29 +08:00
|
|
|
#ifndef _ASM_X86_HARDIRQ_32_H
|
|
|
|
#define _ASM_X86_HARDIRQ_32_H
|
2005-04-17 06:20:36 +08: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 */
|
2007-10-13 05:04:06 +08:00
|
|
|
unsigned int irq0_irqs;
|
2007-10-18 00:04:40 +08: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-17 06:20:36 +08: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-09 11:19:26 +08:00
|
|
|
#define inc_irq_stat(member) (__get_cpu_var(irq_stat).member++)
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
void ack_bad_irq(unsigned int irq);
|
|
|
|
#include <linux/irq_cpustat.h>
|
|
|
|
|
2008-10-23 13:26:29 +08:00
|
|
|
#endif /* _ASM_X86_HARDIRQ_32_H */
|