diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2009-08-18 09:43:31 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-09-05 09:49:48 -0400 |
commit | b592e89ac9af521be164490e45c53c93e89c776f (patch) | |
tree | d344abae4fc3a829389df72adcd91f5f3a7603b8 /arch/s390/include/asm/timex.h | |
parent | 0fac3f477b6b520ae7d972ceb6e958e6807c8e1a (diff) |
[SCSI] zfcp: Remove duplicated code for debug timestamps
The timestamp calculation used for s390dbf output is the same in a
private zfcp function and in debug.c. Replace both with a common
inline function.
Reviewed-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'arch/s390/include/asm/timex.h')
-rw-r--r-- | arch/s390/include/asm/timex.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/s390/include/asm/timex.h b/arch/s390/include/asm/timex.h index cc21e3e20fd7..a07e699bb65c 100644 --- a/arch/s390/include/asm/timex.h +++ b/arch/s390/include/asm/timex.h | |||
@@ -88,6 +88,14 @@ int get_sync_clock(unsigned long long *clock); | |||
88 | void init_cpu_timer(void); | 88 | void init_cpu_timer(void); |
89 | unsigned long long monotonic_clock(void); | 89 | unsigned long long monotonic_clock(void); |
90 | 90 | ||
91 | void tod_to_timeval(__u64, struct timespec *); | ||
92 | |||
93 | static inline | ||
94 | void stck_to_timespec(unsigned long long stck, struct timespec *ts) | ||
95 | { | ||
96 | tod_to_timeval(stck - TOD_UNIX_EPOCH, ts); | ||
97 | } | ||
98 | |||
91 | extern u64 sched_clock_base_cc; | 99 | extern u64 sched_clock_base_cc; |
92 | 100 | ||
93 | #endif | 101 | #endif |