]> asedeno.scripts.mit.edu Git - linux.git/commit
alarmtimer: Provide get_timespec() callback
authorAndrei Vagin <avagin@gmail.com>
Tue, 12 Nov 2019 01:26:57 +0000 (01:26 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 14 Jan 2020 11:20:51 +0000 (12:20 +0100)
commit2f58bf909abf9670fa4e848b433dc12ba4c2a44e
tree100a3c8afd259464962a743d4299f0cdcdeaf023
parent41b3b8dffc1f84e581addfbc09bec0289db3315e
alarmtimer: Provide get_timespec() callback

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()

Wire up alarm bases with get_timespec().

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-9-dima@arista.com
kernel/time/alarmtimer.c