timens: additional helper functions for boottime offset handling
authorMichael Weiß <michael.weiss@aisec.fraunhofer.de>
Tue, 27 Oct 2020 20:42:56 +0000 (21:42 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 3 Nov 2020 10:05:39 +0000 (11:05 +0100)
commit31909e3330c8d65e9a928d40833ebd5feb4f64e6
treea6be9f2eae46593b55f94ad36e48ed2181f1fe7d
parent3cea11cd5e3b00d91caf0b4730194039b45c5891
timens: additional helper functions for boottime offset handling

Provide functions for time_namespace to subtract the boottime offset
from a timespec64 as well as to apply the boottime offset to u64 types in
nanoseconds.

Signed-off-by: Michael Weiß <michael.weiss@aisec.fraunhofer.de>
Reviewed-by: Andrei Vagin <avagin@gmail.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20201027204258.7869-2-michael.weiss@aisec.fraunhofer.de
include/linux/time_namespace.h