[PATCH] i386/x86-64: Emulate CPUID4 on AMD
authorAndi Kleen <ak@suse.de>
Mon, 26 Jun 2006 11:56:13 +0000 (13:56 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 17:48:14 +0000 (10:48 -0700)
commit240cd6a80642da528bfa382ec2ae4e3cb8991ea7
tree6c24052ea167a2fd7e0be93c167e9e7da5bddd2b
parentfaee9a5dc9d8399cc3b1b8e18b6d7ff7b17f1af1
[PATCH] i386/x86-64: Emulate CPUID4 on AMD

Intel systems report the cache level data from CPUID 4 in sysfs.
Add a CPUID 4 emulation for AMD CPUs to report the same
information for them. This allows programs to read this
information in a uniform way.

The AMD way to report this is less flexible so some assumptions
are hardcoded (e.g. no L3)

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/cpu/amd.c
arch/i386/kernel/cpu/intel_cacheinfo.c
arch/x86_64/kernel/setup.c
include/asm-i386/processor.h
include/asm-x86_64/processor.h