瀏覽代碼

sh: Generic HAVE_PERF_COUNTER support.

This enables support for the generic software-based perf counters.

Hardware counter support could be added in the future, but the lack
of a performance counter IRQ makes this rather dubious.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 16 年之前
父節點
當前提交
9c93e59697
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 1 0
      arch/sh/Kconfig
  2. 7 0
      arch/sh/include/asm/perf_counter.h

+ 1 - 0
arch/sh/Kconfig

@@ -15,6 +15,7 @@ config SUPERH
 	select HAVE_IOREMAP_PROT if MMU
 	select HAVE_ARCH_TRACEHOOK
 	select HAVE_DMA_API_DEBUG
+	select HAVE_PERF_COUNTER
 	select RTC_LIB
 	select GENERIC_ATOMIC64
 	help

+ 7 - 0
arch/sh/include/asm/perf_counter.h

@@ -0,0 +1,7 @@
+#ifndef __ASM_SH_PERF_COUNTER_H
+#define __ASM_SH_PERF_COUNTER_H
+
+/* SH only supports software counters through this interface. */
+#define set_perf_counter_pending()	do { } while (0)
+
+#endif /* __ASM_SH_PERF_COUNTER_H */