hc
2023-11-06 9df731a176aab8e03b984b681b1bea01ccff6644
u-boot/arch/arm/lib/bootm.c
....@@ -22,6 +22,7 @@
2222 #include <asm/byteorder.h>
2323 #include <linux/libfdt.h>
2424 #include <mapmem.h>
25
+#include <mp_boot.h>
2526 #include <fdt_support.h>
2627 #include <asm/bootm.h>
2728 #include <asm/secure.h>
....@@ -80,7 +81,7 @@
8081 */
8182 static void announce_and_cleanup(bootm_headers_t *images, int fake)
8283 {
83
- ulong us;
84
+ ulong us, tt_us;
8485
8586 bootstage_mark_name(BOOTSTAGE_ID_BOOTM_HANDOFF, "start_kernel");
8687 #ifdef CONFIG_BOOTSTAGE_FDT
....@@ -108,8 +109,12 @@
108109
109110 cleanup_before_linux();
110111
112
+#ifdef CONFIG_MP_BOOT
113
+ mpb_post(4);
114
+#endif
111115 us = (get_ticks() - gd->sys_start_tick) / (COUNTER_FREQUENCY / 1000000);
112
- printf("Total: %ld.%ld ms\n", us / 1000, us % 1000);
116
+ tt_us = get_ticks() / (COUNTER_FREQUENCY / 1000000);
117
+ printf("Total: %ld.%ld/%ld.%ld ms\n", us / 1000, us % 1000, tt_us / 1000, tt_us % 1000);
113118
114119 printf("\nStarting kernel ...%s\n\n", fake ?
115120 "(fake run for tracing)" : "");