• Mike Travis's avatar
    x86: reduce memory and stack usage in intel_cacheinfo · 6b6309b4
    Mike Travis authored
    * 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: default avatarMike Travis <travis@sgi.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    6b6309b4
intel_cacheinfo.c 22.1 KB