]> git.baikalelectronics.ru Git - kernel.git/commit
time: Add timens_offsets to be used for tasks in time namespace
authorAndrei Vagin <avagin@openvz.org>
Tue, 12 Nov 2019 01:26:53 +0000 (01:26 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 14 Jan 2020 11:20:49 +0000 (12:20 +0100)
commita2780842f8caa6f6e38c5556a88695959e9d2f0c
treec482a7253674ae00aad86b3907661912efc7a897
parent13fd3a10251722b7ff091f5b05af5b082bb17f2e
time: Add timens_offsets to be used for tasks in time namespace

Introduce offsets for time namespace. They will contain an adjustment
needed to convert clocks to/from host's.

A new namespace is created with the same offsets as the time namespace
of the current process.

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-5-dima@arista.com
include/linux/time_namespace.h
kernel/time/namespace.c