aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/oprofile/Makefile
diff options
context:
space:
mode:
authorMatt Fleming <matt@console-pimps.org>2010-09-10 20:36:23 +0100
committerRobert Richter <robert.richter@amd.com>2010-10-11 17:46:16 +0200
commit86c8c04792f152c5469023885510140dd34817bc (patch)
tree367ed782c323a4d1f11d773e9ea9790741fa4968 /arch/sh/oprofile/Makefile
parentoprofile: Abstract the perf-events backend (diff)
downloadlinux-dev-86c8c04792f152c5469023885510140dd34817bc.tar.xz
linux-dev-86c8c04792f152c5469023885510140dd34817bc.zip
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/oprofile/Makefile')
-rw-r--r--arch/sh/oprofile/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/oprofile/Makefile b/arch/sh/oprofile/Makefile
index 4886c5c1786c..e85aae73e3dc 100644
--- a/arch/sh/oprofile/Makefile
+++ b/arch/sh/oprofile/Makefile
@@ -6,4 +6,8 @@ DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \
oprofilefs.o oprofile_stats.o \
timer_int.o )
+ifeq ($(CONFIG_HW_PERF_EVENTS),y)
+DRIVER_OBJS += $(addprefix ../../../drivers/oprofile/, oprofile_perf.o)
+endif
+
oprofile-y := $(DRIVER_OBJS) common.o backtrace.o