From edbd8ebb7b9009c8746f3d4a279859d7e98da249 Mon Sep 17 00:00:00 2001 From: Petri Gynther Date: Mon, 19 Jul 2021 20:14:15 +0200 Subject: [PATCH] defconfig: Simplify log buffer allocation Switch to 1 MiB static log buffer in __log_buf[]: define __LOG_BUF_LEN (1 << CONFIG_LOG_BUF_SHIFT) static char __log_buf[__LOG_BUF_LEN] __aligned(LOG_ALIGN); instead of having the log buffer reallocated at boot by: setup_log_buf() log_buf_add_cpu() log_buf_len_update() new_log_buf = memblock_virt_alloc_nopanic() There is no need to do this reallocation for the log buffer. Change-Id: I8bf00b1fe45e9f6393e332e88642ee0c8a85ad7e Signed-off-by: Petri Gynther --- arch/arm64/configs/vendor/pixel_experience-a52q_defconfig | 2 +- arch/arm64/configs/vendor/pixel_experience-a72q_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/configs/vendor/pixel_experience-a52q_defconfig b/arch/arm64/configs/vendor/pixel_experience-a52q_defconfig index 83342384feaf..56d5e4e2bf8d 100755 --- a/arch/arm64/configs/vendor/pixel_experience-a52q_defconfig +++ b/arch/arm64/configs/vendor/pixel_experience-a52q_defconfig @@ -132,7 +132,7 @@ CONFIG_IKCONFIG_PROC=y CONFIG_IKHEADERS=y CONFIG_LOG_BUF_SHIFT=17 # CONFIG_CONSOLE_FLUSH_ON_HOTPLUG is not set -CONFIG_LOG_CPU_MAX_BUF_SHIFT=17 +CONFIG_LOG_BUF_SHIFT=20 CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13 CONFIG_GENERIC_SCHED_CLOCK=y diff --git a/arch/arm64/configs/vendor/pixel_experience-a72q_defconfig b/arch/arm64/configs/vendor/pixel_experience-a72q_defconfig index d9cfc3840d7e..bbe2b47b4e19 100644 --- a/arch/arm64/configs/vendor/pixel_experience-a72q_defconfig +++ b/arch/arm64/configs/vendor/pixel_experience-a72q_defconfig @@ -132,7 +132,7 @@ CONFIG_IKCONFIG_PROC=y CONFIG_IKHEADERS=y CONFIG_LOG_BUF_SHIFT=17 # CONFIG_CONSOLE_FLUSH_ON_HOTPLUG is not set -CONFIG_LOG_CPU_MAX_BUF_SHIFT=17 +CONFIG_LOG_BUF_SHIFT=20 CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13 CONFIG_GENERIC_SCHED_CLOCK=y