summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-02-28 17:48:33 +0000
committersam <sam@FreeBSD.org>2006-02-28 17:48:33 +0000
commit87272c821ca130738fc0299198dfa74e4ed95086 (patch)
treeec22a3f371048932e7e26f4a9533f34f5998af52 /tools
parentb028e2897bccec876acdd421670077766683dee1 (diff)
downloadFreeBSD-src-87272c821ca130738fc0299198dfa74e4ed95086.zip
FreeBSD-src-87272c821ca130738fc0299198dfa74e4ed95086.tar.gz
when acpi does not explicitly enumerate lapic/cpu's there should
only be 1 Reviewed by: jhb
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/ncpus/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/ncpus/acpi.c b/tools/tools/ncpus/acpi.c
index 2cdf637..9ea2d13 100644
--- a/tools/tools/ncpus/acpi.c
+++ b/tools/tools/ncpus/acpi.c
@@ -331,5 +331,5 @@ acpi_detect(void)
}
ncpu = 0;
acpi_handle_rsdt(rsdp);
- return (ncpu);
+ return (ncpu == 0 ? 1 : ncpu);
}
OpenPOWER on IntegriCloud