Commit c2dcfde8 authored by H. Peter Anvin's avatar H. Peter Anvin Committed by Ingo Molnar

x86: cleanup for setup code crashes during IST probe

Clean up the code for crashes during SpeedStep probing on older
machines.
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 875e40b9
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
#include <linux/edd.h> #include <linux/edd.h>
#include <asm/boot.h> #include <asm/boot.h>
#include <asm/setup.h> #include <asm/setup.h>
#include "bitops.h"
#define NCAPINTS 8 #include <asm/cpufeature.h>
/* Useful macros */ /* Useful macros */
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
......
...@@ -16,9 +16,6 @@ ...@@ -16,9 +16,6 @@
*/ */
#include "boot.h" #include "boot.h"
#include "bitops.h"
#include <asm/cpufeature.h>
#include "cpustr.h" #include "cpustr.h"
static char *cpu_name(int level) static char *cpu_name(int level)
......
...@@ -22,10 +22,8 @@ ...@@ -22,10 +22,8 @@
#ifdef _SETUP #ifdef _SETUP
# include "boot.h" # include "boot.h"
# include "bitops.h"
#endif #endif
#include <linux/types.h> #include <linux/types.h>
#include <asm/cpufeature.h>
#include <asm/processor-flags.h> #include <asm/processor-flags.h>
#include <asm/required-features.h> #include <asm/required-features.h>
#include <asm/msr-index.h> #include <asm/msr-index.h>
......
...@@ -73,7 +73,8 @@ static void keyboard_set_repeat(void) ...@@ -73,7 +73,8 @@ static void keyboard_set_repeat(void)
*/ */
static void query_ist(void) static void query_ist(void)
{ {
/* Some 486 BIOSes apparently crash on this call */ /* Some older BIOSes apparently crash on this call, so filter
it from machines too old to have SpeedStep at all. */
if (cpu.level < 6) if (cpu.level < 6)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment