diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2021-02-08 16:32:27 +0100 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2021-02-13 17:17:54 +0100 |
commit | d1deda6f2b238bfcd3a4521b3221974443416342 (patch) | |
tree | 84bd073e0d2c8e9d57f1f38bbd48415c1cf99d1b /arch | |
parent | 2cfd7b73f593ebf53e90a3464aa66c9ca996936e (diff) | |
download | lwn-d1deda6f2b238bfcd3a4521b3221974443416342.tar.gz lwn-d1deda6f2b238bfcd3a4521b3221974443416342.zip |
s390/debug: use union tod_clock
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/kernel/debug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c index b6619ae9a3e0..bb958d32bd81 100644 --- a/arch/s390/kernel/debug.c +++ b/arch/s390/kernel/debug.c @@ -829,11 +829,11 @@ static inline debug_entry_t *get_active_entry(debug_info_t *id) static inline void debug_finish_entry(debug_info_t *id, debug_entry_t *active, int level, int exception) { - unsigned char clk[STORE_CLOCK_EXT_SIZE]; unsigned long timestamp; + union tod_clock clk; - get_tod_clock_ext(clk); - timestamp = *(unsigned long *) &clk[0] >> 4; + store_tod_clock_ext(&clk); + timestamp = clk.us; timestamp -= TOD_UNIX_EPOCH >> 12; active->clock = timestamp; active->cpu = smp_processor_id(); |