aboutsummaryrefslogtreecommitdiff
path: root/arch/alpha/include/asm/perf_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/alpha/include/asm/perf_event.h')
-rw-r--r--arch/alpha/include/asm/perf_event.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/alpha/include/asm/perf_event.h b/arch/alpha/include/asm/perf_event.h
index 3bef8522017..fe792ca818f 100644
--- a/arch/alpha/include/asm/perf_event.h
+++ b/arch/alpha/include/asm/perf_event.h
@@ -1,9 +1,10 @@
#ifndef __ASM_ALPHA_PERF_EVENT_H
#define __ASM_ALPHA_PERF_EVENT_H
-/* Alpha only supports software events through this interface. */
-static inline void set_perf_event_pending(void) { }
-
-#define PERF_EVENT_INDEX_OFFSET 0
+#ifdef CONFIG_PERF_EVENTS
+extern void init_hw_perf_events(void);
+#else
+static inline void init_hw_perf_events(void) { }
+#endif
#endif /* __ASM_ALPHA_PERF_EVENT_H */