Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

linux/time64.h: Extract common header for vDSO

The vDSO library should only include the necessary headers required for
a userspace library (UAPI and a minimal set of kernel headers). To make
this possible it is necessary to isolate from the kernel headers the
common parts that are strictly necessary to build the library.

Split time64.h into linux and common headers to make the latter suitable
for inclusion in the vDSO library.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200320145351.32292-13-vincenzo.frascino@arm.com

authored by

Vincenzo Frascino and committed by
Thomas Gleixner
b72a9c5e 9a416231

+15 -9
+1 -9
include/linux/time64.h
··· 3 3 #define _LINUX_TIME64_H 4 4 5 5 #include <linux/math64.h> 6 + #include <vdso/time64.h> 6 7 7 8 typedef __s64 time64_t; 8 9 typedef __u64 timeu64_t; ··· 19 18 struct timespec64 it_interval; 20 19 struct timespec64 it_value; 21 20 }; 22 - 23 - /* Parameters used to convert the timespec values: */ 24 - #define MSEC_PER_SEC 1000L 25 - #define USEC_PER_MSEC 1000L 26 - #define NSEC_PER_USEC 1000L 27 - #define NSEC_PER_MSEC 1000000L 28 - #define USEC_PER_SEC 1000000L 29 - #define NSEC_PER_SEC 1000000000L 30 - #define FSEC_PER_SEC 1000000000000000LL 31 21 32 22 /* Located here for timespec[64]_valid_strict */ 33 23 #define TIME64_MAX ((s64)~((u64)1 << 63))
+14
include/vdso/time64.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef __VDSO_TIME64_H 3 + #define __VDSO_TIME64_H 4 + 5 + /* Parameters used to convert the timespec values: */ 6 + #define MSEC_PER_SEC 1000L 7 + #define USEC_PER_MSEC 1000L 8 + #define NSEC_PER_USEC 1000L 9 + #define NSEC_PER_MSEC 1000000L 10 + #define USEC_PER_SEC 1000000L 11 + #define NSEC_PER_SEC 1000000000L 12 + #define FSEC_PER_SEC 1000000000000000LL 13 + 14 + #endif /* __VDSO_TIME64_H */