|
@@ -52,16 +52,19 @@ static inline void kstat_incr_irqs_this_cpu(unsigned int irq,
|
|
{
|
|
{
|
|
kstat_this_cpu.irqs[irq]++;
|
|
kstat_this_cpu.irqs[irq]++;
|
|
}
|
|
}
|
|
-#endif
|
|
|
|
-
|
|
|
|
|
|
|
|
-#ifndef CONFIG_GENERIC_HARDIRQS
|
|
|
|
static inline unsigned int kstat_irqs_cpu(unsigned int irq, int cpu)
|
|
static inline unsigned int kstat_irqs_cpu(unsigned int irq, int cpu)
|
|
{
|
|
{
|
|
return kstat_cpu(cpu).irqs[irq];
|
|
return kstat_cpu(cpu).irqs[irq];
|
|
}
|
|
}
|
|
#else
|
|
#else
|
|
|
|
+#include <linux/irq.h>
|
|
extern unsigned int kstat_irqs_cpu(unsigned int irq, int cpu);
|
|
extern unsigned int kstat_irqs_cpu(unsigned int irq, int cpu);
|
|
|
|
+#define kstat_irqs_this_cpu(DESC) \
|
|
|
|
+ ((DESC)->kstat_irqs[smp_processor_id()])
|
|
|
|
+#define kstat_incr_irqs_this_cpu(irqno, DESC) \
|
|
|
|
+ ((DESC)->kstat_irqs[smp_processor_id()]++)
|
|
|
|
+
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/*
|
|
/*
|