]> git.baikalelectronics.ru Git - kernel.git/commit
x86, intel: Output microcode revision in /proc/cpuinfo
authorAndi Kleen <ak@linux.intel.com>
Thu, 13 Oct 2011 00:46:33 +0000 (17:46 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 14 Oct 2011 11:16:35 +0000 (13:16 +0200)
commit38946799c9608307d25dcbb3a1eb42bea5f2722f
tree264fa332aa060c396caa89d41cbb6f7c5e7f4d3f
parent1a66ffe6a0f2eb6a7413680633c615395784af80
x86, intel: Output microcode revision in /proc/cpuinfo

I got a request to make it easier to determine the microcode
update level on Intel CPUs. This patch adds a new "microcode"
field to /proc/cpuinfo.

The microcode level is also outputed on fatal machine checks
together with the other CPUID model information.

I removed the respective code from the microcode update driver,
it just reads the field from cpu_data. Also when the microcode
is updated it fills in the new values too.

I had to add a memory barrier to native_cpuid to prevent it
being optimized away when the result is not used.

This turns out to clean up further code which already got this
information manually. This is done in followon patches.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Link: http://lkml.kernel.org/r/1318466795-7393-1-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/intel.c
arch/x86/kernel/cpu/mcheck/mce.c
arch/x86/kernel/cpu/proc.c
arch/x86/kernel/microcode_intel.c