]> git.baikalelectronics.ru Git - kernel.git/commit
x86: fix: do not run code in amd_bus.c on non-AMD CPUs
authorRobert Richter <robert.richter@amd.com>
Fri, 22 Aug 2008 18:23:37 +0000 (20:23 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 23 Aug 2008 15:39:30 +0000 (17:39 +0200)
commitd9601217fc64ed518d91613e5424deb015cea70f
tree83cae2da59bf5fe1b3f5cb5dc0f08a0cdb8fe63c
parent00590ef22eeca85bbcf220d3042a5986b3a9bc51
x86: fix: do not run code in amd_bus.c on non-AMD CPUs

Jan Beulich wrote:

> Even worse - this would even try to access the MSR on non-AMD CPUs
> (currently probably prevented just by the fact that only AMD ones use
> family values of 0x10 or higher).

This patch adds cpu vendor check to the postcore_initcalls.

Reported-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/pci/amd_bus.c