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