aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time/hrtimer.c
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@gmail.com>2019-11-12 01:27:03 +0000
committerThomas Gleixner <tglx@linutronix.de>2020-01-14 12:20:54 +0100
commit7da8b3a44bb426a43670b3a97ed61085018a9d43 (patch)
tree370fcb94c7b19d6f3ee69312d87aac5e5bb7aeb0 /kernel/time/hrtimer.c
parenttimerfd: Make timerfd_settime() time namespace aware (diff)
downloadlinux-dev-7da8b3a44bb426a43670b3a97ed61085018a9d43.tar.xz
linux-dev-7da8b3a44bb426a43670b3a97ed61085018a9d43.zip
posix-timers: Make timer_settime() time namespace aware
Wire timer_settime() syscall into time namespace virtualization. sys_timer_settime() calls the ktime->timer_set() callback. Right now, common_timer_set() is the only implementation for the callback. The user-supplied expiry value is converted from timespec64 to ktime and then timens_ktime_to_host() can be used to convert namespace's time to the host time. Inside a time namespace kernel's time differs by a fixed offset from a user-supplied time, but only absolute values (TIMER_ABSTIME) must be converted. Co-developed-by: Dmitry Safonov <dima@arista.com> Signed-off-by: Andrei Vagin <avagin@openvz.org> Signed-off-by: Dmitry Safonov <dima@arista.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20191112012724.250792-15-dima@arista.com
Diffstat (limited to 'kernel/time/hrtimer.c')
0 files changed, 0 insertions, 0 deletions