Skip to content
Snippets Groups Projects
Commit bffd7981 authored by Bin Meng's avatar Bin Meng
Browse files

x86: Adjust board_final_cleanup() order


Call board_final_cleanup() before write_tables(), so that anything
done in board_final_cleanup() on a normal boot path is also done
on an S3 resume path.

Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Tested-by: default avatarStefan Roese <sr@denx.de>
parent 95e50dd1
No related branches found
No related tags found
No related merge requests found
......@@ -205,6 +205,8 @@ __weak void board_final_cleanup(void)
int last_stage_init(void)
{
board_final_cleanup();
#if CONFIG_HAVE_ACPI_RESUME
void *wake_vector = acpi_find_wakeup_vector();
......@@ -214,8 +216,6 @@ int last_stage_init(void)
write_tables();
board_final_cleanup();
return 0;
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment