x86, cacheinfo: Determine number of cache leafs using CPUID 0x8000001d on AMD
authorAndreas Herrmann <andreas.herrmann3@amd.com>
Fri, 19 Oct 2012 08:59:33 +0000 (10:59 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 13 Nov 2012 19:22:29 +0000 (11:22 -0800)
commit04a1541828ea223169eb44a336bfad8ec0dfb46a
treea670df6305266009a488f52ad763eb5a13767abf
parent193f3fcb3ab769bab4a2b9fa181eef3e5699a352
x86, cacheinfo: Determine number of cache leafs using CPUID 0x8000001d on AMD

CPUID 0x8000001d works quite similar to Intels' CPUID function 4.
Use it to determine number of cache leafs.

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Link: http://lkml.kernel.org/r/20121019085933.GE26718@alberich
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/intel_cacheinfo.c