Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98585934 authored by Shreyas K K's avatar Shreyas K K
Browse files

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: default avatarShreyas K K <shrekk@codeaurora.org>
parent 5b9c90fb
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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)