summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlmuHS <almuhs@github.com>2019-05-04 20:06:04 +0200
committerAlmuHS <almuhs@github.com>2019-05-04 20:06:04 +0200
commita667bab82e600fd453f66e341a91d8227c16db0b (patch)
treeef21d6327d6bf76e092f0403aab41db8baa645c9
parenteb8b0bbf6299a0c19fca12ab71b810447f0d47f5 (diff)
hide cpu enumeration if NCPUS == 1
-rw-r--r--i386/i386at/model_dep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 2dea5a52..aaa6c3c7 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -419,6 +419,8 @@ i386at_init(void)
}
#endif /* MACH_XEN */
+
+#if NCPUS > 1
/*Read lapic and ioapic from acpi tables*/
if(acpi_setup() == 0)
{
@@ -428,6 +430,7 @@ i386at_init(void)
{
panic("could not find acpi tables for multiprocessor");
}
+#endif
/*