mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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:
parent
5b9c90fb86
commit
9858593476
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue