arch/x86: Remove acpi_fail_wakeup() and cbmem_fail_resume()
Unused since commit d46b8d5
.
Change-Id: If0f1e0381dd7698f842dc1288ff222a4d5d4783c
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35389
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
66d875a143
commit
2491d790d2
|
@ -60,12 +60,6 @@ int acpi_is_wakeup_s4(void)
|
|||
acpi_handoff_wakeup();
|
||||
return (acpi_slp_type == ACPI_S4);
|
||||
}
|
||||
|
||||
void acpi_fail_wakeup(void)
|
||||
{
|
||||
if (acpi_slp_type == ACPI_S3 || acpi_slp_type == ACPI_S2)
|
||||
acpi_slp_type = ACPI_S0;
|
||||
}
|
||||
#endif /* ENV_RAMSTAGE */
|
||||
|
||||
#define WAKEUP_BASE 0x600
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <cbmem.h>
|
||||
#include <arch/acpi.h>
|
||||
|
||||
#if CONFIG(CBMEM_TOP_BACKUP)
|
||||
|
||||
|
@ -35,13 +34,3 @@ void *cbmem_top(void)
|
|||
}
|
||||
|
||||
#endif /* CBMEM_TOP_BACKUP */
|
||||
|
||||
/* Something went wrong, our high memory area got wiped */
|
||||
void cbmem_fail_resume(void)
|
||||
{
|
||||
#if !defined(__PRE_RAM__) && CONFIG(HAVE_ACPI_RESUME)
|
||||
/* ACPI resume needs to be cleared in the fail-to-recover case, but that
|
||||
* condition is only handled during ramstage. */
|
||||
acpi_fail_wakeup();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -932,7 +932,6 @@ unsigned long acpi_create_hest_error_source(acpi_hest_t *hest,
|
|||
acpi_hest_esd_t *esd, u16 type, void *data, u16 len);
|
||||
|
||||
/* For ACPI S3 support. */
|
||||
void acpi_fail_wakeup(void);
|
||||
void acpi_resume(void *wake_vec);
|
||||
void mainboard_suspend_resume(void);
|
||||
void *acpi_find_wakeup_vector(void);
|
||||
|
|
|
@ -106,7 +106,6 @@ void *cbmem_find(u32 id);
|
|||
/* Indicate to each hook if cbmem is being recovered or not. */
|
||||
typedef void (* const cbmem_init_hook_t)(int is_recovery);
|
||||
void cbmem_run_init_hooks(int is_recovery);
|
||||
void cbmem_fail_resume(void);
|
||||
|
||||
/* Ramstage only functions. */
|
||||
/* Add the cbmem memory used to the memory map at boot. */
|
||||
|
|
|
@ -32,7 +32,3 @@ void cbmem_run_init_hooks(int is_recovery)
|
|||
init_hook_ptr++;
|
||||
}
|
||||
}
|
||||
|
||||
void __weak cbmem_fail_resume(void)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue