diff options
author | Ravikiran G Thirumalai <kiran@scalex86.org> | 2007-07-19 10:47:53 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 19:04:43 +0200 |
commit | 4004c69ad68dd03733179277280ea2946990ba36 (patch) | |
tree | 521f206229832f757c0f7652101d187a7a6ff5c8 /drivers/char/mbcs.c | |
parent | gpio calls don't need i/o barriers (diff) | |
download | linux-4004c69ad68dd03733179277280ea2946990ba36.tar.xz linux-4004c69ad68dd03733179277280ea2946990ba36.zip |
Avoid too many remote cpu references due to /proc/stat
Optimize show_stat to collect per-irq information just once.
On x86_64, with newer kernel versions, kstat_irqs is a bit of a problem.
On every call to kstat_irqs, the process brings in per-cpu data from all
online cpus. Doing this for NR_IRQS, which is now 256 + 32 * NR_CPUS
results in (256+32*63) * 63 remote cpu references on a 64 cpu config.
Considering the fact that we already compute this value per-cpu, we can
save on the remote references as below.
Signed-off-by: Alok N Kataria <alok.kataria@calsoftinc.com>
Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/mbcs.c')
0 files changed, 0 insertions, 0 deletions