diff options
author | AlmuHS <almuhs@github.com> | 2019-05-04 20:06:04 +0200 |
---|---|---|
committer | AlmuHS <almuhs@github.com> | 2019-05-04 20:06:04 +0200 |
commit | a667bab82e600fd453f66e341a91d8227c16db0b (patch) | |
tree | ef21d6327d6bf76e092f0403aab41db8baa645c9 | |
parent | eb8b0bbf6299a0c19fca12ab71b810447f0d47f5 (diff) |
hide cpu enumeration if NCPUS == 1
-rw-r--r-- | i386/i386at/model_dep.c | 3 |
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 /* |