From e696de1f316e85dc2209f7ff5e6a6518e54eb9ed Mon Sep 17 00:00:00 2001 From: Enjia Mai Date: Wed, 10 Aug 2022 16:47:47 +0800 Subject: [PATCH] lib: os: disable PRINTK_SYNC while using EFI console as log backend There is a spinlock used in the EFI console code for printing one line string. It already made the log output being in order under multi-cores, so it doesn't need a printk sync spinlock again. Disable it while using EFI console as a log backend. Fixes #47512. Signed-off-by: Enjia Mai --- lib/os/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/os/Kconfig b/lib/os/Kconfig index b9aa977015b..2c32fd2dcf0 100644 --- a/lib/os/Kconfig +++ b/lib/os/Kconfig @@ -23,7 +23,7 @@ config BASE64 config PRINTK_SYNC bool "Serialize printk() calls" - default y if SMP && MP_NUM_CPUS > 1 + default y if SMP && MP_NUM_CPUS > 1 && !(EFI_CONSOLE && LOG) help When true, a spinlock will be taken around the output from a single printk() call, preventing the output data from