From: Matt Fleming Date: Fri, 10 Sep 2010 19:36:23 +0000 (+0100) Subject: sh: oprofile: Use perf-events oprofile backend X-Git-Tag: v2.6.37-rc1~214^2~18^2~5^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86c8c04792f152c5469023885510140dd34817bc;p=pandora-kernel.git 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 Acked-by: Paul Mundt Signed-off-by: Robert Richter --- Reading git-diff-tree failed