bootm: Move board_quiesce_devices(void) to bootm_final()
This function is called just before boot, so move it from EFI into the common bootm_final() function. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -46,10 +46,6 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
struct bootm_headers images; /* pointers to os/initrd/fdt images */
|
||||
|
||||
__weak void board_quiesce_devices(void)
|
||||
{
|
||||
}
|
||||
|
||||
#if CONFIG_IS_ENABLED(LEGACY_IMAGE_FORMAT)
|
||||
/**
|
||||
* image_get_kernel - verify legacy format kernel image
|
||||
|
||||
@@ -10,6 +10,10 @@
|
||||
#include <usb.h>
|
||||
#include <dm/root.h>
|
||||
|
||||
__weak void board_quiesce_devices(void)
|
||||
{
|
||||
}
|
||||
|
||||
void bootm_final(enum bootm_final_t flags)
|
||||
{
|
||||
printf("\nStarting kernel ...%s\n\n", flags & BOOTM_FINAL_FAKE ?
|
||||
@@ -22,6 +26,8 @@ void bootm_final(enum bootm_final_t flags)
|
||||
if (IS_ENABLED(CONFIG_BOOTSTAGE_REPORT))
|
||||
bootstage_report();
|
||||
|
||||
board_quiesce_devices();
|
||||
|
||||
if (IS_ENABLED(CONFIG_USB_DEVICE))
|
||||
udc_disconnect();
|
||||
|
||||
|
||||
@@ -2230,7 +2230,6 @@ static efi_status_t EFIAPI efi_exit_boot_services(efi_handle_t image_handle,
|
||||
|
||||
if (!efi_st_keep_devices) {
|
||||
bootm_disable_interrupts();
|
||||
board_quiesce_devices();
|
||||
bootm_final(BOOTM_FINAL_NO_CLEANUP);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user