posix-clocks: Rename .clock_get_timespec() callbacks accordingly
authorAndrei Vagin <avagin@gmail.com>
Tue, 12 Nov 2019 01:26:55 +0000 (01:26 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 14 Jan 2020 11:20:50 +0000 (12:20 +0100)
commiteaf80194d0fe48be393587541c48a799a9a06a70
tree4d5b11e808cbf891cf11316b69d7ebce2158cad5
parent819a95fe3adfc7b558bfd96dd5ac589c4f543fd4
posix-clocks: Rename .clock_get_timespec() callbacks accordingly

The upcoming support for time namespaces requires to have access to:

  - The time in a task's time namespace for sys_clock_gettime()
  - The time in the root name space for common_timer_get()

That adds a valid reason to finally implement a separate callback which
returns the time in ktime_t format in (struct k_clock).

As a preparation ground for introducing clock_get_ktime(), the original
callback clock_get() was renamed into clock_get_timespec().
Reflect the renaming into the callback implementations.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Co-developed-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20191112012724.250792-7-dima@arista.com
kernel/time/alarmtimer.c
kernel/time/posix-timers.c