]> asedeno.scripts.mit.edu Git - linux.git/commit
rtc: use ktime_get_real_ts64() instead of getnstimeofday64()
authorArnd Bergmann <arnd@arndb.de>
Wed, 11 Jul 2018 12:47:12 +0000 (14:47 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 13 Jul 2018 08:47:18 +0000 (10:47 +0200)
commit5089ea15baa9e7b0cb49f36881f2cb27bf281789
treeb87b4e9694e371913f58b2e8e37b01a285e703b0
parentfed0b1bd1b64a680874e8cfa4c3da8dfc01e143f
rtc: use ktime_get_real_ts64() instead of getnstimeofday64()

getnstimeofday64() is just a wrapper around the ktime accessor, so
we should use that directly.

I considered using ktime_get_boottime_ts64() (to avoid leap second
problems) or ktime_get_real_seconds() (to simplify the calculation,
but in the end concluded that the existing interface is probably
the most appropriate in this case.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/class.c