Android q-preview-3 Release 0.4
arm64/configs: bonito: 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: I81b9f1e2a89fe9e16dd702bda968c88877041083
Signed-off-by: Petri Gynther <pgynther@google.com>
1 file changed