Files
OpenCellular/driver
Alexandru M Stan b317d2d65d sensors: Make sync driver more robust
Use a queue now for sync events, this will allow multiple interrupts to be
called before the motion sense task executes. The events (including
timestamps) get stored in a small queue. 8 events for the queue size should
be plenty, most applications will have latency concerns anyway once we
get a couple of queued up events.

Also changed the init function to be a little bit more robust to race
conditions. Added count argument to the "sync" simulation command to test
the queue behavior.

BRANCH=master
BUG=b:73551961, b:67743747
TEST="sync 4" yields 4 events on the AP, whereas before it would only
give the AP the last event.

Change-Id: I9fcb1fb8b35eb5f8ffcc21afbfcb0f0d9bc33804
Signed-off-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1065149
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
2018-05-30 01:02:37 -07:00
..
2018-05-17 19:35:00 -07:00
2018-05-17 19:34:48 -07:00
2018-03-19 19:21:21 -07:00
2018-03-19 19:21:21 -07:00
2017-07-13 15:08:42 -07:00
2015-06-18 19:07:00 +00:00
2015-06-18 19:07:00 +00:00
2018-05-30 01:02:37 -07:00
2018-03-14 04:06:53 -07:00
2017-10-31 21:49:24 -07:00