]> git.baikalelectronics.ru Git - kernel.git/commit
x86: cpuid: allow querying %ecx-sensitive CPUID levels
authorH. Peter Anvin <hpa@zytor.com>
Mon, 4 Feb 2008 15:47:59 +0000 (16:47 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 4 Feb 2008 15:47:59 +0000 (16:47 +0100)
commitca70a70914857d71e708f0c22d4504612bc7f620
tree09eeeb7da4a431f07bc7b4afb146279ff6b78d9d
parent11326cb9e7cfe0a49b547bb004a88a3580b19805
x86: cpuid: allow querying %ecx-sensitive CPUID levels

After /dev/*/cpuid was introduced, Intel changed the semantics of the
CPUID instruction to be sentitive to %ecx as well as %eax.  This patch
allows querying of %ecx-sensitive levels by placing the %ecx value in
the upper 32 bits of the file position (lower 32 bits always were used
for the %eax value.)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpuid.c