diff options
author | Matt Fleming <matt@console-pimps.org> | 2010-09-10 15:36:23 -0400 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2010-10-11 11:46:16 -0400 |
commit | 86c8c04792f152c5469023885510140dd34817bc (patch) | |
tree | 367ed782c323a4d1f11d773e9ea9790741fa4968 /arch/sh/Kconfig | |
parent | 3d90a00763b51e1db344a7430c966be723b67a29 (diff) |
sh: oprofile: Use perf-events oprofile backend
Now that we've got a generic perf-events based oprofile backend we might
as well make use of it seeing as SH doesn't do anything special with its
oprofile backend. Also introduce a new CONFIG_HW_PERF_EVENTS symbol so
that we can fallback to using the timer interrupt for oprofile if the
CPU doesn't support perf events.
Also, to avoid a section mismatch warning we need to annotate
oprofile_arch_exit() with an __exit marker.
Signed-off-by: Matt Fleming <matt@console-pimps.org>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/sh/Kconfig')
-rw-r--r-- | arch/sh/Kconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 33990fa95af0..35b6c3f85173 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -249,6 +249,11 @@ config ARCH_SHMOBILE | |||
249 | select PM | 249 | select PM |
250 | select PM_RUNTIME | 250 | select PM_RUNTIME |
251 | 251 | ||
252 | config CPU_HAS_PMU | ||
253 | depends on CPU_SH4 || CPU_SH4A | ||
254 | default y | ||
255 | bool | ||
256 | |||
252 | if SUPERH32 | 257 | if SUPERH32 |
253 | 258 | ||
254 | choice | 259 | choice |
@@ -738,6 +743,14 @@ config GUSA_RB | |||
738 | LLSC, this should be more efficient than the other alternative of | 743 | LLSC, this should be more efficient than the other alternative of |
739 | disabling interrupts around the atomic sequence. | 744 | disabling interrupts around the atomic sequence. |
740 | 745 | ||
746 | config HW_PERF_EVENTS | ||
747 | bool "Enable hardware performance counter support for perf events" | ||
748 | depends on PERF_EVENTS && CPU_HAS_PMU | ||
749 | default y | ||
750 | help | ||
751 | Enable hardware performance counter support for perf events. If | ||
752 | disabled, perf events will use software events only. | ||
753 | |||
741 | source "drivers/sh/Kconfig" | 754 | source "drivers/sh/Kconfig" |
742 | 755 | ||
743 | endmenu | 756 | endmenu |