diff options
author | davej <davej> | 2001-04-17 06:29:40 +0000 |
---|---|---|
committer | davej <davej> | 2001-04-17 06:29:40 +0000 |
commit | 7d4dcb708a50409420c1e85bcc2be9a2d10c9283 (patch) | |
tree | db71f2d3ca77a17b222dbe6a28c52df659118b9c /cpuid.c | |
parent | feaeb7f7366709c0ce086c5f6362ec8ba68e0b82 (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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |