diff options
author | Jett Rink <jettrink@chromium.org> | 2019-04-09 13:26:18 -0600 |
---|---|---|
committer | Jett Rink <jettrink@chromium.org> | 2019-04-24 21:06:49 +0000 |
commit | d6cc4f14205a00b6d17d22fb7e74a0c8b063ec85 (patch) | |
tree | 5657bcfb06db820159ebee8d46abe28688e38bf9 /include/mkbp_event.h | |
parent | 0f15b8e5a3583cac214ea93b97918e25d5ff88bc (diff) | |
download | chrome-ec-d6cc4f14205a00b6d17d22fb7e74a0c8b063ec85.tar.gz |
mkbp: take timestamp closer to hardware interrupt
We want to ensure that the timestamp we take for last mkbp is as close
to the actual hardware interrupt from EC->AP.
BRANCH=none
BUG=b:129159505
TEST=passing CTS sensor run (except test 133 nullptr) with this change
Change-Id: I94b214f021f0b63ff2883e5fe8e32acc83ce208f
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1560390
Tested-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-by: Enrico Granata <egranata@chromium.org>
Reviewed-by: Mathew King <mathewk@chromium.org>
Commit-Queue: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Diffstat (limited to 'include/mkbp_event.h')
-rw-r--r-- | include/mkbp_event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mkbp_event.h b/include/mkbp_event.h index c451c53673..5bfe7ac505 100644 --- a/include/mkbp_event.h +++ b/include/mkbp_event.h @@ -33,7 +33,7 @@ int mkbp_send_event(uint8_t event_type); * * This can be used if a board has a custom method. */ -void mkbp_set_host_active_via_custom(int active); +int mkbp_set_host_active_via_custom(int active, uint32_t *timestamp); /* * The struct to store the event source definition. The get_data routine is |