From 9858593476d88f3fe910584230808abd3b94767d Mon Sep 17 00:00:00 2001 From: Shreyas K K Date: Tue, 6 Apr 2021 19:23:25 +0530 Subject: [PATCH] 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 --- init/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/init/main.c b/init/main.c index 60ec1a7b35c9..719dcc311297 100644 --- a/init/main.c +++ b/init/main.c @@ -103,6 +103,10 @@ #define CREATE_TRACE_POINTS #include +#ifdef CONFIG_QGKI_MSM_BOOT_TIME_MARKER +#include +#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)