summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/perf_counter.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/include/asm/perf_counter.h')
-rw-r--r--arch/sparc/include/asm/perf_counter.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/perf_counter.h b/arch/sparc/include/asm/perf_counter.h
new file mode 100644
index 00000000000..5d7a8ca0e49
--- /dev/null
+++ b/arch/sparc/include/asm/perf_counter.h
@@ -0,0 +1,14 @@
+#ifndef __ASM_SPARC_PERF_COUNTER_H
+#define __ASM_SPARC_PERF_COUNTER_H
+
+extern void set_perf_counter_pending(void);
+
+#define PERF_COUNTER_INDEX_OFFSET 0
+
+#ifdef CONFIG_PERF_COUNTERS
+extern void init_hw_perf_counters(void);
+#else
+static inline void init_hw_perf_counters(void) { }
+#endif
+
+#endif