From: Keith Mok <ek9852@xxxxxxxxx> Advanced sensor has fifo/ring buffer internally, they can store data when the system is suspend, we need a timestamp that is able to take into account of the time when the system is suspend also. Signed-off-by: Keith Mok <ek9852@xxxxxxxxx> --- include/linux/iio/iio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h index b589411..7092877 100644 --- a/include/linux/iio/iio.h +++ b/include/linux/iio/iio.h @@ -286,7 +286,7 @@ static inline bool iio_channel_has_info(const struct iio_chan_spec *chan, **/ static inline s64 iio_get_time_ns(void) { - return ktime_get_real_ns(); + return ktime_get_boot_ns(); } /* Device operating modes */ -- 2.5.1 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html