diff options
| author | Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com> | 2026-10-20 17:26:00 +0200 |
|---|---|---|
| committer | Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> | 2026-11-02 00:39:27 +0000 |
| commit | 3785dffc7c68751a8429ae6dd75804c14a5a7c7a (patch) | |
| tree | a67c3984da7ba0e9f1249429be0185f0c3c628e7 /tools/perf/scripts/python | |
| parent | 7b5f54280f8e6ef07664f6705dd005feefbe87d1 (diff) | |
iio: inv_sensors: prevent timestamps going back in time in transitions
Ensure when computing first timestamp and when applying odr change,
that the next timestamp will not be lower than the previous one.
This way there is no risk to have a timestamp going back in time, meaning
being lower than the previous one. It already can never happen without
a transition because we are generating timestamps by adding the period
to the last timestamp.
Fixes: 0ecc363ccea7 ("iio: make invensense timestamp module generic")
Cc: stable@vger.kernel.org
Signed-off-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
