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
@ -17,9 +17,6 @@
|
||||
#include <bootstate.h>
|
||||
#include <rules.h>
|
||||
#include <symbols.h>
|
||||
#if IS_ENABLED(CONFIG_ARCH_X86) && !IS_ENABLED(CONFIG_EARLY_CBMEM_INIT)
|
||||
#include <arch/acpi.h>
|
||||
#endif
|
||||
|
||||
void cbmem_run_init_hooks(int is_recovery)
|
||||
{
|
||||
@ -40,16 +37,3 @@ void cbmem_run_init_hooks(int is_recovery)
|
||||
void __weak cbmem_fail_resume(void)
|
||||
{
|
||||
}
|
||||
|
||||
#if ENV_RAMSTAGE && !IS_ENABLED(CONFIG_EARLY_CBMEM_INIT)
|
||||
static void init_cbmem_post_device(void *unused)
|
||||
{
|
||||
if (acpi_is_wakeup())
|
||||
cbmem_initialize();
|
||||
else
|
||||
cbmem_initialize_empty();
|
||||
}
|
||||
|
||||
BOOT_STATE_INIT_ENTRY(BS_POST_DEVICE, BS_ON_ENTRY,
|
||||
init_cbmem_post_device, NULL);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user