Commit c2dcfde8274883e1f6050784dcbd34b01e824b91
Committed by
Ingo Molnar
1 parent
875e40b975
Exists in
master
and in
7 other branches
x86: cleanup for setup code crashes during IST probe
Clean up the code for crashes during SpeedStep probing on older machines. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Showing 4 changed files with 4 additions and 8 deletions Side-by-side Diff
arch/x86/boot/boot.h
... | ... | @@ -24,8 +24,8 @@ |
24 | 24 | #include <linux/edd.h> |
25 | 25 | #include <asm/boot.h> |
26 | 26 | #include <asm/setup.h> |
27 | - | |
28 | -#define NCAPINTS 8 | |
27 | +#include "bitops.h" | |
28 | +#include <asm/cpufeature.h> | |
29 | 29 | |
30 | 30 | /* Useful macros */ |
31 | 31 | #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) |
arch/x86/boot/cpu.c
arch/x86/boot/cpucheck.c
arch/x86/boot/main.c
... | ... | @@ -73,7 +73,8 @@ |
73 | 73 | */ |
74 | 74 | static void query_ist(void) |
75 | 75 | { |
76 | - /* Some 486 BIOSes apparently crash on this call */ | |
76 | + /* Some older BIOSes apparently crash on this call, so filter | |
77 | + it from machines too old to have SpeedStep at all. */ | |
77 | 78 | if (cpu.level < 6) |
78 | 79 | return; |
79 | 80 |