]> git.baikalelectronics.ru Git - kernel.git/commit
x86: reduce memory and stack usage in intel_cacheinfo
authorMike Travis <travis@sgi.com>
Tue, 25 Mar 2008 22:06:56 +0000 (15:06 -0700)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:44:58 +0000 (19:44 +0200)
commitcd344f34b4bc2a7d905754372cd511b18cdd2a87
tree1a823a60ca1cd561b7c63f7ee52a6ac057ca68c1
parentc7303cf793313518c8b67cf9960dd6f11b70f1e3
x86: reduce memory and stack usage in intel_cacheinfo

* Change the following static arrays sized by NR_CPUS to
  per_cpu data variables:

_cpuid4_info *cpuid4_info[NR_CPUS];
_index_kobject *index_kobject[NR_CPUS];
kobject * cache_kobject[NR_CPUS];

* Remove the local NR_CPUS array with a kmalloc'd region in
  show_shared_cpu_map().

Also some minor complaints from checkpatch.pl fixed.

Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/intel_cacheinfo.c