aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/include/asm/perf_counter.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/include/asm/perf_counter.h')
-rw-r--r--arch/sh/include/asm/perf_counter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sh/include/asm/perf_counter.h b/arch/sh/include/asm/perf_counter.h
index a8153c2aa6f..d8e6bb9c0cc 100644
--- a/arch/sh/include/asm/perf_counter.h
+++ b/arch/sh/include/asm/perf_counter.h
@@ -2,6 +2,8 @@
#define __ASM_SH_PERF_COUNTER_H
/* SH only supports software counters through this interface. */
-#define set_perf_counter_pending() do { } while (0)
+static inline void set_perf_counter_pending(void) {}
+
+#define PERF_COUNTER_INDEX_OFFSET 0
#endif /* __ASM_SH_PERF_COUNTER_H */