aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2006-02-28 17:48:33 +0000
committerSam Leffler <sam@FreeBSD.org>2006-02-28 17:48:33 +0000
commit6328732d024887d1810099287b3309a8fef14226 (patch)
treeec22a3f371048932e7e26f4a9533f34f5998af52 /tools
parent0411773be72448d6756ab2dd29918c5ad6623ce8 (diff)
downloadsrc-6328732d024887d1810099287b3309a8fef14226.tar.gz
src-6328732d024887d1810099287b3309a8fef14226.zip
when acpi does not explicitly enumerate lapic/cpu's there should
only be 1 Reviewed by: jhb
Notes
Notes: svn path=/head/; revision=156110
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 2cdf63765586..9ea2d130ce5b 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);
}