From 1781ec9d2fe8bbfa0b97ed5047e22220a70ac9d0 Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Thu, 14 Feb 2019 08:39:54 -0800 Subject: [PATCH] soc/x86_64: board/x86_64/qemu_x86_64: Enable 2-processor SMP as default We can turn this off in application code, but the default should be SMP. Oddball note: the SMP setting is in the soc layer and not arch, even though I think it would be better there. We don't actually have a per-arch defconfig file included by kconfig. Signed-off-by: Andy Ross --- boards/x86_64/qemu_x86_64/Kconfig.defconfig | 5 +++++ soc/x86_64/x86_64/Kconfig.defconfig | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/boards/x86_64/qemu_x86_64/Kconfig.defconfig b/boards/x86_64/qemu_x86_64/Kconfig.defconfig index 172733baf74..7cdfe47ee28 100644 --- a/boards/x86_64/qemu_x86_64/Kconfig.defconfig +++ b/boards/x86_64/qemu_x86_64/Kconfig.defconfig @@ -6,4 +6,9 @@ config BUILD_OUTPUT_BIN config BOARD default "qemu_x86_64" +# In theory we could ask qemu for any configuration, but this seems +# like a good default. +config MP_NUM_CPUS + default 2 + endif # BOARD_QEMU_X86_64 diff --git a/soc/x86_64/x86_64/Kconfig.defconfig b/soc/x86_64/x86_64/Kconfig.defconfig index 5a9693d0faa..0e954bb1ee0 100644 --- a/soc/x86_64/x86_64/Kconfig.defconfig +++ b/soc/x86_64/x86_64/Kconfig.defconfig @@ -6,4 +6,10 @@ config SOC config USE_SWITCH default y +# Make this the default even if we have only one CPU, mostly for test +# coverage. Uniprocessor apps for production purposes can get a +# moderate code size savings by turning it off. +config SMP + default y + endif