Skip to contentSkip to conversation

posix-timers: use ktime_get_raw_ts64() instead of getrawmonotonic64()

PATCH In review Ivid Suvarna 2 participants 2 messages Jun 18, 2018 – Jun 19, 2018 Posix clocks and timers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 posix-timers: use ktime_get_raw_ts64() instead of getrawmonotonic64()

getrawmonotonic64() is deprecated. This follows Arnd Bergmann's patch[1] for replacing deprecated functions.

[1] https://patchwork.kernel.org/patch/10472141/

---
 kernel/time/posix-timers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/posix-timers.c +1 -1
index e08ce3f27447..2f50ac8c258f 100644
@@ -228,7 +228,7 @@ static int posix_ktime_get_ts(clockid_t which_clock, struct timespec64 *tp)
  */
 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp)
 {
-	getrawmonotonic64(tp);
+	ktime_get_raw_ts64(tp);
 	return 0;
 }
 
#1 lore raw
Quoted 6 lines · Ivid Suvarna

getrawmonotonic64() is deprecated. This follows Arnd Bergmann's patch[1] for replacing deprecated functions.

[1] https://patchwork.kernel.org/patch/10472141/

This looks correct, but is the same change that I already sent in a slightly larger patch, see https://patchwork.kernel.org/patch/10471729/

I think I have covered almost all the uses of the deprecated interfaces now, sent out the first 50 patches (arch, drivers, core) yesterday and should be able send another 50 (addressing most file systems) today.

Arnd