All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: use boot time instead of realtime
@ 2016-02-03 19:29 Keith Mok
  2016-02-04  0:36 ` Matt Ranostay
  0 siblings, 1 reply; 3+ messages in thread
From: Keith Mok @ 2016-02-03 19:29 UTC (permalink / raw)
  To: linux-iio; +Cc: Keith Mok

From: Keith Mok <ek9852@gmail.com>

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@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-04 17:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-03 19:29 [PATCH] iio: use boot time instead of realtime Keith Mok
2016-02-04  0:36 ` Matt Ranostay
2016-02-04 17:36   ` Lars-Peter Clausen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.