extern unsigned long nr_context_switches(void);
-/*
- * Maybe we need to smp-ify kernel_stat some day. It would be nice to do
- * that without having to modify all the code that increments the stats.
- */
-#define KERNEL_STAT_INC(x) kstat.x++
-#define KERNEL_STAT_ADD(x, y) kstat.x += y
-
#if !defined(CONFIG_ARCH_S390)
/*
* Number of interrupts per specific IRQ source, since bootup
*/
-static inline int kstat_irqs (int irq)
+static inline int kstat_irqs(int irq)
{
int i, sum=0;
- for (i = 0 ; i < NR_CPUS ; i++)
- if (cpu_possible(i))
+ for (i = 0; i < NR_CPUS; i++)
+ if (cpu_possible(i))
sum += kstat_cpu(i).irqs[irq];
return sum;