Set MaxCountCPUs even if no APIC found.
authorKevin O'Connor <kevin@koconnor.net>
Tue, 24 Nov 2009 14:41:06 +0000 (09:41 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 24 Nov 2009 14:41:06 +0000 (09:41 -0500)
Signed-off-by: Gleb Natapov <gleb@redhat.com>
src/smp.c

index 71004767ba5c23f0ebba65c54d045cf4105f3b6d..00cf64bd9dab840489527488c7c562525097875c 100644 (file)
--- a/src/smp.c
+++ b/src/smp.c
@@ -75,7 +75,9 @@ smp_probe(void)
     cpuid(1, &eax, &ebx, &ecx, &cpuid_features);
     if (! (cpuid_features & CPUID_APIC)) {
         // No apic - only the main cpu is present.
+        dprintf(1, "No apic - only the main cpu is present.\n");
         CountCPUs= 1;
+        MaxCountCPUs = 1;
         return;
     }