x86: Clear incorrectly forced X86_FEATURE_LAHF_LM flag
authorKevin Winchester <kjwinchester@gmail.com>
Mon, 10 Aug 2009 22:56:45 +0000 (19:56 -0300)
committerIngo Molnar <mingo@elte.hu>
Tue, 11 Aug 2009 11:34:54 +0000 (13:34 +0200)
commitfbd8b1819e80ac5a176d085fdddc3a34d1499318
tree7b2d450a6f64808ccf5bc6f8049a877c8db86ff0
parent0d01f31439c1e4d602bf9fdc924ab66f407f5e38
x86: Clear incorrectly forced X86_FEATURE_LAHF_LM flag

Due to an erratum with certain AMD Athlon 64 processors, the
BIOS may need to force enable the LAHF_LM capability.
Unfortunately, in at least one case, the BIOS does this even
for processors that do not support the functionality.

Add a specific check that will clear the feature bit for
processors known not to support the LAHF/SAHF instructions.

Signed-off-by: Kevin Winchester <kjwinchester@gmail.com>
Acked-by: Borislav Petkov <petkovbb@googlemail.com>
LKML-Reference: <4A80A5AD.2000209@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/amd.c