summaryrefslogtreecommitdiff
path: root/chip/ish/ipc_heci.h
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2019-04-09 13:26:18 -0600
committerJett Rink <jettrink@chromium.org>2019-04-24 21:06:49 +0000
commitd6cc4f14205a00b6d17d22fb7e74a0c8b063ec85 (patch)
tree5657bcfb06db820159ebee8d46abe28688e38bf9 /chip/ish/ipc_heci.h
parent0f15b8e5a3583cac214ea93b97918e25d5ff88bc (diff)
downloadchrome-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 'chip/ish/ipc_heci.h')
-rw-r--r--chip/ish/ipc_heci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/ish/ipc_heci.h b/chip/ish/ipc_heci.h
index e7238df83d..183e6a2c6b 100644
--- a/chip/ish/ipc_heci.h
+++ b/chip/ish/ipc_heci.h
@@ -77,7 +77,7 @@ int ipc_read(const ipc_handle_t handle, void *buf, const size_t buf_size,
int timeout_us);
/* Write message to ipc channel. */
-int ipc_write(const ipc_handle_t handle, const void *buf,
- const size_t buf_size);
+int ipc_write_timestamp(const ipc_handle_t handle, const void *buf,
+ const size_t buf_size, uint32_t *timestamp);
#endif /* __IPC_HECI_H */