summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2006-02-20 20:29:23 +0000
committerPeter Jones <pjones@redhat.com>2006-02-20 20:29:23 +0000
commit409fd0ffdac52f8b14c5ce77312dde0933c123c0 (patch)
treec7f1d7c8854c55a46980c96ce6b9be0e7b39cfac
parent086d3c5f7e135dfd96d6b4469a23e74cd6f44bd0 (diff)
downloadanaconda-409fd0ffdac52f8b14c5ce77312dde0933c123c0.tar.gz
anaconda-409fd0ffdac52f8b14c5ce77312dde0933c123c0.tar.xz
anaconda-409fd0ffdac52f8b14c5ce77312dde0933c123c0.zip
- don't count "disabled" cpus, which are either not present (empty socket) or
disabled in bios.
-rw-r--r--isys/acpi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/isys/acpi.c b/isys/acpi.c
index bb94f7558..90830b3a6 100644
--- a/isys/acpi.c
+++ b/isys/acpi.c
@@ -1,4 +1,6 @@
+#undef ANACONDA_COUNT_MISSING_HOTPLUGGABLE_CPUS
+
#include <sys/types.h>
#include <sys/mman.h>
#include <stdlib.h>
@@ -1134,7 +1136,12 @@ static int ncpus=0;
static void mp_register_lapic(u8 id, u8 enabled)
{
+#ifdef ANACONDA_COUNT_MISSING_HOTPLUGGABLE_CPUS
ncpus++;
+#else
+ if (enabled)
+ ncpus++;
+#endif
}
int detectAcpiCpusAvailable(void)