summaryrefslogtreecommitdiff
path: root/cpuid.c
diff options
context:
space:
mode:
authordavej <davej>2001-04-17 06:29:40 +0000
committerdavej <davej>2001-04-17 06:29:40 +0000
commit7d4dcb708a50409420c1e85bcc2be9a2d10c9283 (patch)
treedb71f2d3ca77a17b222dbe6a28c52df659118b9c /cpuid.c
parentfeaeb7f7366709c0ce086c5f6362ec8ba68e0b82 (diff)
If we haven't got the cpuid driver loaded, do cpuid_UP on CPU0
without bitching about SMP. (nonsense error).
Diffstat (limited to 'cpuid.c')
-rw-r--r--cpuid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpuid.c b/cpuid.c
index 769819e..6413dd4 100644
--- a/cpuid.c
+++ b/cpuid.c
@@ -1,5 +1,5 @@
/*
- * $Id: cpuid.c,v 1.3 2001/04/08 02:21:07 davej Exp $
+ * $Id: cpuid.c,v 1.4 2001/04/17 06:29:40 davej Exp $
* This file is part of x86info
* (C) 2000, 2001 Dave Jones.
* Fixes by Arjan van de Ven (arjanv@redhat.com) and
@@ -28,8 +28,8 @@ void cpuid (int CPU_number, int index,
unsigned char buffer[16];
int fh;
- /* Have we established this is uniprocessor ? */
- if (CPU_number == -1) {
+ /* Uniprocessor ? Or 1st CPU in SMP ? */
+ if (CPU_number == 0) {
cpuid_UP (index, eax, ebx, ecx, edx);
return;
}