Skip to content

Remove getnstimestamp()

Matt Helsley lkml 1 version In review

Get series with b4
b4 am 1134620987.7372.35.camel@stark

Versions newest first

  1. v1 Latest1 of 3 patches 2 repliesIn review

1 of 3 patches is in this archive. The cover letter announces 3.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Export ktime_get_ts()kernel/hrtimer.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 000/003] Remove getnstimestamp()

This series removes the getnstimestamp() function from kernel/time.c in
favor of kernel/hrtimer.c's ktime_get_ts() function which currently does exactly the same thing: retrieves a high-resolution (ns) timespec structure and performs the wall_to_monotonic adjustment.

As Jay Lan suggested I was going to replace calls to getnstimestamp()
with do_posix_clock_monotonic_gettime() but the hrtimer patches switched that to a macro. ktime_get_ts() is shorter and avoids unnecessary association with posix timers (though it does not emphasize monotonicity or resolution).

The series:

001/003 export-ktime_get_ts.patch
Exports ktime_get_ts()

002/003 proc-events-use-ktime-for-timestamp.patch
Switches the only user of getnstimestamp() to ktime_get_ts()

003/003 rm-getnstimestamp.patch
Remove getnstimestamp() from kernel/time.c

Thanks,
-Matt Helsley