summaryrefslogtreecommitdiff
path: root/arch/s390/kernel/trace_clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/kernel/trace_clock.c')
-rw-r--r--arch/s390/kernel/trace_clock.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/s390/kernel/trace_clock.c b/arch/s390/kernel/trace_clock.c
new file mode 100644
index 000000000000..9ca568058cbc
--- /dev/null
+++ b/arch/s390/kernel/trace_clock.c
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0
+#include <linux/trace_clock.h>
+#include <linux/timex.h>
+/*
+ * trace_clock_s390_tod(): trace clock based on the s390 TOD clock
+ *
+ * Unlike the other clocks, this is not in nanoseconds.
+ */
+u64 notrace trace_clock_s390_tod(void)
+{
+ return get_tod_clock();
+}