summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/trace/trace_clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/trace/trace_clock.c')
-rw-r--r--arch/powerpc/kernel/trace/trace_clock.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/trace/trace_clock.c b/arch/powerpc/kernel/trace/trace_clock.c
new file mode 100644
index 000000000..491706909
--- /dev/null
+++ b/arch/powerpc/kernel/trace/trace_clock.c
@@ -0,0 +1,15 @@
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License, version 2, as
+ * published by the Free Software Foundation.
+ *
+ * Copyright (C) 2015 Naveen N. Rao, IBM Corporation
+ */
+
+#include <asm/trace_clock.h>
+#include <asm/time.h>
+
+u64 notrace trace_clock_ppc_tb(void)
+{
+ return get_tb();
+}