diff options
| author | Andrew Morton <akpm@digeo.com> | 2002-11-25 17:56:47 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-11-25 17:56:47 -0800 |
| commit | 580ae994ea9b31af9113c3fb03cb076dc227ca23 (patch) | |
| tree | 4d1def2f6a6471903ac6f0f673668878d04b94cc /include | |
| parent | 832eb7cf7140fc2037cf248ee050453b55892e46 (diff) | |
[PATCH] kernel_stat cleanup
Patch from Dipankar Sarma <dipankar@gamebox.net>
This is a trivial cleanup removing two old unused macros from
kernel_stat.h that made no sense with the new per-CPU kstat.
Also included a few finicky coding style changes. Please apply.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/kernel_stat.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h index 506fdabad412..88425e94cdc5 100644 --- a/include/linux/kernel_stat.h +++ b/include/linux/kernel_stat.h @@ -35,23 +35,16 @@ DECLARE_PER_CPU(struct kernel_stat, kstat); 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; |
