]> git.baikalelectronics.ru Git - kernel.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)
commit5724c7fd15479f4fa88b0af330fa17c3d4cbe2b6
tree100a3c8afd259464962a743d4299f0cdcdeaf023
parentf84f6fa45a1db59578956a56def8d5206597f95a
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