init: main: Add boot marker to measure kernel boot KPI

Add boot marker to measure the time taken for the kernel
boot.

Change-Id: I9705d919467137fdae2f97cfdefb16b519e6af3c
Signed-off-by: Shreyas K K <[email protected]>
This commit is contained in:
Shreyas K K 2021-04-06 19:23:25 +05:30
commit 9858593476

View file

@ -103,6 +103,10 @@
#define CREATE_TRACE_POINTS
#include <trace/events/initcall.h>
#ifdef CONFIG_QGKI_MSM_BOOT_TIME_MARKER
#include <soc/qcom/boot_stats.h>
#endif
static int kernel_init(void *);
extern void init_IRQ(void);
@ -1130,6 +1134,10 @@ static int __ref kernel_init(void *unused)
rcu_end_inkernel_boot();
#ifdef CONFIG_QGKI_MSM_BOOT_TIME_MARKER
place_marker("M - DRIVER Kernel Boot Done");
#endif
if (ramdisk_execute_command) {
ret = run_init_process(ramdisk_execute_command);
if (!ret)