]> 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)
commite1a088a8f2981c981a1939bfaaed696acd4c7786
treec482a7253674ae00aad86b3907661912efc7a897
parent6863f52c26208fddf792a62d1a896fb2a0db27d5
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