summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYajun Li <yajunl@codeaurora.org>2018-09-17 15:20:16 +0800
committerYajun Li <yajunl@codeaurora.org>2018-09-19 14:21:50 +0800
commitfddde64f3a6dbd30ecf72ce7ff49dc50998292f7 (patch)
tree3aa548f3eb8b7eb6df390d4b1ea65732a05c1267
parent727593cbf7ebb6782b2b3b45a951cc8ccc03a788 (diff)
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 <yajunl@codeaurora.org>
-rw-r--r--drivers/soc/qcom/hab/hab.c4
-rw-r--r--drivers/soc/qcom/hab/hab.h1
2 files changed, 5 insertions, 0 deletions
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 <linux/reboot.h>
#include <linux/kobject.h>
#include <linux/sysfs.h>
+#include <soc/qcom/boot_stats.h>
enum hab_payload_type {
HAB_PAYLOAD_TYPE_MSG = 0x0,