From fddde64f3a6dbd30ecf72ce7ff49dc50998292f7 Mon Sep 17 00:00:00 2001 From: Yajun Li Date: Mon, 17 Sep 2018 15:20:16 +0800 Subject: [PATCH] soc: hab: add bootmarker for hab driver To measure the boot kpi of hab driver,so add bootmarker in hab_init function Change-Id: Ib755e77e7a6768d028279331c4bf3e92c10141a4 Signed-off-by: Yajun Li --- drivers/soc/qcom/hab/hab.c | 4 ++++ drivers/soc/qcom/hab/hab.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/soc/qcom/hab/hab.c b/drivers/soc/qcom/hab/hab.c index b4ce657edae0..65935f6eb48f 100644 --- a/drivers/soc/qcom/hab/hab.c +++ b/drivers/soc/qcom/hab/hab.c @@ -1315,6 +1315,8 @@ static int __init hab_init(void) int result; dev_t dev; + place_marker("M - HAB INIT Start"); + result = alloc_chrdev_region(&hab_driver.major, 0, 1, "hab"); if (result < 0) { @@ -1372,6 +1374,8 @@ static int __init hab_init(void) hab_stat_init(&hab_driver); + place_marker("M - HAB INIT End"); + return result; err: diff --git a/drivers/soc/qcom/hab/hab.h b/drivers/soc/qcom/hab/hab.h index f381303f3ca8..c4e8eaa368e3 100644 --- a/drivers/soc/qcom/hab/hab.h +++ b/drivers/soc/qcom/hab/hab.h @@ -45,6 +45,7 @@ #include #include #include +#include enum hab_payload_type { HAB_PAYLOAD_TYPE_MSG = 0x0,