arch/x86 cbmem: Drop tests for LATE_CBMEM_INIT
Remove all cases in code where we tested for EARLY_CBMEM_INIT or LATE_CBMEM_INIT being set. This also removes all references to LATE_CBMEM_INIT in comments. Change-Id: I4e47fb5c8a947d268f4840cfb9c0d3596fb9ab39 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/26827 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Patrick Georgi
parent
8616442150
commit
513a1a81f7
@ -35,8 +35,7 @@ static int console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL;
|
||||
|
||||
static inline int get_log_level(void)
|
||||
{
|
||||
if (!IS_ENABLED(CONFIG_LATE_CBMEM_INIT) &&
|
||||
car_get_var(console_inited) == 0)
|
||||
if (car_get_var(console_inited) == 0)
|
||||
return -1;
|
||||
if (CONSOLE_LEVEL_CONST)
|
||||
return get_console_loglevel();
|
||||
@ -79,8 +78,7 @@ asmlinkage void console_init(void)
|
||||
|
||||
console_hw_init();
|
||||
|
||||
if (!IS_ENABLED(CONFIG_LATE_CBMEM_INIT))
|
||||
car_set_var(console_inited, 1);
|
||||
car_set_var(console_inited, 1);
|
||||
|
||||
printk(BIOS_NOTICE, "\n\ncoreboot-%s%s %s " ENV_STRING " starting...\n",
|
||||
coreboot_version, coreboot_extra_version, coreboot_build);
|
||||
|
Reference in New Issue
Block a user