]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: cleanup for setup code crashes during IST probe
authorH. Peter Anvin <hpa@zytor.com>
Wed, 13 Aug 2008 20:14:22 +0000 (13:14 -0700)
committerIngo Molnar <mingo@elte.hu>
Wed, 13 Aug 2008 22:13:52 +0000 (00:13 +0200)
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>
arch/x86/boot/boot.h
arch/x86/boot/cpu.c
arch/x86/boot/cpucheck.c
arch/x86/boot/main.c

index 9d4b4b43d97af59f6ed45d8680b8d58a04469c5c..616b804a229520d21f2a9022b5abdf088876bcd1 100644 (file)
@@ -24,8 +24,8 @@
 #include <linux/edd.h>
 #include <asm/boot.h>
 #include <asm/setup.h>
-
-#define NCAPINTS   8
+#include "bitops.h"
+#include <asm/cpufeature.h>
 
 /* Useful macros */
 #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
index 92d6fd73dc7dff60681d6ab7dee1362fba783d70..75298fe2edca6ac30c76354a573c87fb4eab135c 100644 (file)
@@ -16,9 +16,6 @@
  */
 
 #include "boot.h"
-#include "bitops.h"
-#include <asm/cpufeature.h>
-
 #include "cpustr.h"
 
 static char *cpu_name(int level)
index c1ce0303d994206faa386226dcba435dbba2aa97..4b9ae7c567480658ff1e83333a2f8137c887579b 100644 (file)
 
 #ifdef _SETUP
 # include "boot.h"
-# include "bitops.h"
 #endif
 #include <linux/types.h>
-#include <asm/cpufeature.h>
 #include <asm/processor-flags.h>
 #include <asm/required-features.h>
 #include <asm/msr-index.h>
index 01aa64b5575bab043cd43df70b3f0ebedfe05025..197421db1af130d7ac3295e3cc1708b1e3b3e30f 100644 (file)
@@ -73,7 +73,8 @@ static void keyboard_set_repeat(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)
                return;