diff options
author | Peter Jones <pjones@redhat.com> | 2006-02-20 20:29:23 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2006-02-20 20:29:23 +0000 |
commit | 409fd0ffdac52f8b14c5ce77312dde0933c123c0 (patch) | |
tree | c7f1d7c8854c55a46980c96ce6b9be0e7b39cfac | |
parent | 086d3c5f7e135dfd96d6b4469a23e74cd6f44bd0 (diff) | |
download | anaconda-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.c | 7 |
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) |