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 <pgynther@google.com>
fourteen
Petri Gynther 3 years ago committed by Jenna
parent 3e907728b2
commit edbd8ebb7b
  1. 2
      arch/arm64/configs/vendor/pixel_experience-a52q_defconfig
  2. 2
      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

@ -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

Loading…
Cancel
Save