diff options
author | Martin Schwidefsky | 2016-11-16 09:48:41 +0100 |
---|---|---|
committer | Martin Schwidefsky | 2017-02-07 07:27:13 +0100 |
commit | ea417aa8a38bc7db929281d6dc4b671e75f51844 (patch) | |
tree | 61f70f0f578d9ce66d40bcec03f727b7df256d76 /arch/s390/include | |
parent | s390/topology: correct allocation of topology information (diff) | |
download | kernel-qcow2-linux-ea417aa8a38bc7db929281d6dc4b671e75f51844.tar.gz kernel-qcow2-linux-ea417aa8a38bc7db929281d6dc4b671e75f51844.tar.xz kernel-qcow2-linux-ea417aa8a38bc7db929281d6dc4b671e75f51844.zip |
s390/debug: make debug event time stamps relative to the boot TOD clock
The debug features currently uses absolute TOD time stamps for the
debug events. Given that the TOD clock can jump forward and backward
due to STP sync checks the order of debug events can get obfuscated.
Replace the absolute TOD time stamps with a delta to the IPL time
stamp. On a STP sync check the TOD clock correction is added to
the IPL time stamp as well to make the deltas unaffected by STP
sync check.
The readout of the debug feature entries will convert the deltas
back to absolute time stamps based on the Unix epoch.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include')
-rw-r--r-- | arch/s390/include/asm/timex.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/s390/include/asm/timex.h b/arch/s390/include/asm/timex.h index de8298800722..354344dcc198 100644 --- a/arch/s390/include/asm/timex.h +++ b/arch/s390/include/asm/timex.h @@ -178,14 +178,6 @@ int get_phys_clock(unsigned long long *clock); void init_cpu_timer(void); unsigned long long monotonic_clock(void); -void tod_to_timeval(__u64 todval, struct timespec64 *xt); - -static inline -void stck_to_timespec64(unsigned long long stck, struct timespec64 *ts) -{ - tod_to_timeval(stck - TOD_UNIX_EPOCH, ts); -} - extern u64 sched_clock_base_cc; /** |