linux-stable/arch/mips/ralink
Andrew Bresticker a669efc4a3 MIPS: Add hook to get C0 performance counter interrupt
The hardware perf event driver and oprofile interpret the global
cp0_perfcount_irq differently: in the hardware perf event driver
it is an offset from MIPS_CPU_IRQ_BASE and in oprofile it is the
actual IRQ number.  This still works most of the time since
MIPS_CPU_IRQ_BASE is usually 0, but is clearly wrong.  Since the
performance counter interrupt may vary from platform to platform
like the C0 timer interrupt, add the optional get_c0_perfcount_int
hook which returns the IRQ number of the performance counter.
The hook should return < 0 if the performance counter interrupt is
shared with the timer.  If the hook is not present, the CPU vector
reported in C0_IntCtl (cp0_perfcount_irq) is used.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Reviewed-by: Qais Yousef <qais.yousef@imgtec.com>
Tested-by: Qais Yousef <qais.yousef@imgtec.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Bresticker <abrestic@chromium.org>
Cc: Jeffrey Deans <jeffrey.deans@imgtec.com>
Cc: Markos Chandras <markos.chandras@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: Qais Yousef <qais.yousef@imgtec.com>
Cc: Jonas Gorski <jogo@openwrt.org>
Cc: John Crispin <blogic@openwrt.org>
Cc: David Daney <ddaney.cavm@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7805/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2014-11-24 07:44:53 +01:00
..
cevt-rt3352.c treewide: Fix typos in printk 2013-12-19 15:10:49 +01:00
clk.c MIPS: Panic messages should not end in \n. 2013-10-29 21:24:19 +01:00
common.h MIPS: ralink: Add support for reset-controller API 2013-09-04 18:27:28 +02:00
early_printk.c MIPS: ralink: make early_printk work on RT2880 2013-05-08 01:19:08 +02:00
irq.c MIPS: Add hook to get C0 performance counter interrupt 2014-11-24 07:44:53 +01:00
Kconfig MIPS: ralink: Move device-trees to arch/mips/boot/dts/ 2014-09-22 13:35:50 +02:00
Makefile MIPS: ralink: Move device-trees to arch/mips/boot/dts/ 2014-09-22 13:35:50 +02:00
mt7620.c MIPS: Panic messages should not end in \n. 2013-10-29 21:24:19 +01:00
of.c MIPS: ralink: Use strlcpy to ensure string is always NUL-terminated. 2014-07-30 14:42:21 +02:00
Platform MIPS: ralink: mt7620: Add cpu-feature-override header 2013-09-04 16:58:31 +02:00
prom.c MIPS: ralink: adds prom and cmdline code 2013-02-17 01:25:30 +01:00
reset.c MIPS: ralink: Add support for reset-controller API 2013-09-04 18:27:28 +02:00
rt288x.c MIPS: ralink: add memory definition for RT2880 2013-05-08 01:19:11 +02:00
rt305x.c MIPS: Panic messages should not end in \n. 2013-10-29 21:24:19 +01:00
rt3883.c MIPS: ralink: add memory definition for RT3883 2013-05-08 01:19:12 +02:00
timer.c MIPS: ralink: remove deprecated IRQF_DISABLED 2014-09-29 19:46:32 +02:00