sh: perf events: Add preliminary support for SH-4A counters.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 28 Oct 2009 08:57:54 +0000 (17:57 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 28 Oct 2009 08:57:54 +0000 (17:57 +0900)
commitac44e6694755744fe96442919da1f2c7e87a2a61
tree155ecdb56348513eb434df87edfccc779c40cc1a
parent3714a9a026bba09a58e7cf06e0c23c67da6841c2
sh: perf events: Add preliminary support for SH-4A counters.

This adds in preliminary support for the SH-4A performance counters.
Presently only the first 2 counters are supported, as these are the ones
of the most interest to the perf tool and end users. Counter chaining is
not presently handled, so these are simply implemented as 32-bit
counters.

This also establishes a perf event support framework for other hardware
counters, which the existing SH-4 oprofile code will migrate over to as
the SH-4A support evolves.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/perf_event.h
arch/sh/kernel/Makefile
arch/sh/kernel/cpu/sh4a/Makefile
arch/sh/kernel/cpu/sh4a/perf_event.c [new file with mode: 0644]
arch/sh/kernel/perf_event.c [new file with mode: 0644]