diff options
author | Gwendal Grignou <[email protected]> | 2020-03-27 15:34:34 -0700 |
---|---|---|
committer | Enric Balletbo i Serra <[email protected]> | 2020-03-28 22:04:32 +0100 |
commit | b9b05664ebf6cd58d2a7f9a7cffa119f331114e6 (patch) | |
tree | 2e178f56b446ec79ea78e01aa776c6644f4f50b3 /tools/perf/util/c++/clang-test.cpp | |
parent | 145d59baff5944b71551ac518d7fd7d377a9c820 (diff) |
platform/chrome: cros_ec_sensorhub: Add code to spread timestmap
EC FIFO can send sensor events in batch. Spread them based on
previous (TSa) and currnet timestamp (TSb)
EC FIFO iio events
+-----------+
| TSa |
+-----------+ +---------------------------------------+
| event 1 | | event 1 | TSb - (TSb - TSa)/n * (n-1) |
+-----------+ +---------------------------------------+
| event 2 | | event 2 | TSb - (TSb - TSa)/n * (n-2) |
+-----------+ +---------------------------------------+
| ... | ------> | .... | |
+-----------+ +---------------------------------------+
| event n-1 | | event 2 | TSb - (TSb - TSa)/n |
+-----------+ +---------------------------------------+
| event n | | event 2 | TSb |
+-----------+ +---------------------------------------+
| TSb |
+-----------+
Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Jonathan Cameron <[email protected]>
Acked-by: Lee Jones <[email protected]>
Acked-by: Andy Shevchenko <[email protected]>
Signed-off-by: Enric Balletbo i Serra <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang-test.cpp')
0 files changed, 0 insertions, 0 deletions