]> git.baikalelectronics.ru Git - kernel.git/commit
sh: oprofile: Use perf-events oprofile backend
authorMatt Fleming <matt@console-pimps.org>
Fri, 10 Sep 2010 19:36:23 +0000 (20:36 +0100)
committerRobert Richter <robert.richter@amd.com>
Mon, 11 Oct 2010 15:46:16 +0000 (17:46 +0200)
commit0ab9b8ebd63c64f63ffa565732efadece667673a
tree367ed782c323a4d1f11d773e9ea9790741fa4968
parent2833fd8c4581382f1cad06a8a9e937261d92916c
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>
arch/sh/Kconfig
arch/sh/oprofile/Makefile
arch/sh/oprofile/common.c
arch/sh/oprofile/op_impl.h [deleted file]