diff options
author | Sam Hurst <shurst@google.com> | 2021-06-01 14:45:08 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-02 03:49:40 +0000 |
commit | e88d4164a92dd3cb29c1401f85e269cf0d4f91e7 (patch) | |
tree | a9b3deafe7d422455dfb60c2770560048e13135e /zephyr/app/ec | |
parent | 878232ff99b525d63177529ac93491df9bff8a78 (diff) | |
download | chrome-ec-e88d4164a92dd3cb29c1401f85e269cf0d4f91e7.tar.gz |
zephyr: faft_ec: print time stamped init label
Print time stamped label, [<time> Inits done], after
initialization is complete. The label is used in the
firmware_ECBootTime test.
BRANCH=none
BUG=b:189218631
TEST=sudo test_that -b trogdor-zephyr 192.168.0.70 firmware_ECBootTime
results-1-firmware_ECBootTime [ PASSED ]
results-1-firmware_ECBootTime/firmware_ECBootTime [ PASSED ]
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: Ifa96d1eb0035a823d5e25b2f3973f4bb063ca044
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2927464
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'zephyr/app/ec')
-rw-r--r-- | zephyr/app/ec/ec_app_main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zephyr/app/ec/ec_app_main.c b/zephyr/app/ec/ec_app_main.c index f451f60521..80f5b64bce 100644 --- a/zephyr/app/ec/ec_app_main.c +++ b/zephyr/app/ec/ec_app_main.c @@ -89,6 +89,13 @@ void ec_app_main(void) hook_notify(HOOK_INIT); } + /* + * Print the init time. Not completely accurate because it can't take + * into account the time before timer_init(), but it'll at least catch + * the majority of the time. + */ + cprints(CC_SYSTEM, "Inits done"); + /* Start the EC tasks after performing all main initialization */ if (IS_ENABLED(CONFIG_SHIMMED_TASKS)) { start_ec_tasks(); |