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)
commit6b6309b4c7f6da467c5d5b7d18fa8cb79730f381
tree1a823a60ca1cd561b7c63f7ee52a6ac057ca68c1
parent30ca60c15a725f655e5d3f14e0238a066bc5aeb7
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