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)
commitaf993f58d69ee9c1f421dfc87c3ed231c113989c
treec482a7253674ae00aad86b3907661912efc7a897
parent769071ac9f20b6a447410c7eaa55d1a5233ef40c
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