2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 02:34:01 +08:00
linux-next/arch/mips/lantiq
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
..
falcon treewide: fix errors in printk 2014-09-01 11:18:25 +02:00
xway treewide: fix errors in printk 2014-09-01 11:18:25 +02:00
clk.c Merge branch 'mips-next-3.9' of git://git.linux-mips.org/pub/scm/john/linux-john into mips-for-linux-next 2013-02-21 12:51:33 +01:00
clk.h MIPS: lantiq: adds static clock for PP32 2013-02-17 00:15:17 +01:00
early_printk.c MIPS: lantiq: fix early printk 2012-05-15 17:49:22 +02:00
irq.c MIPS: Add hook to get C0 performance counter interrupt 2014-11-24 07:44:53 +01:00
Kconfig MIPS: Lantiq: Move device-trees to arch/mips/boot/dts/ 2014-09-22 13:35:49 +02:00
Makefile MIPS: Lantiq: Move device-trees to arch/mips/boot/dts/ 2014-09-22 13:35:49 +02:00
Platform MIPS: lantiq: implement support for FALCON soc 2012-05-21 14:31:55 +01:00
prom.c mips: convert fdt pointers to opaque pointers 2014-04-30 00:59:13 -05:00
prom.h of/fdt: consolidate built-in dtb section variables 2014-04-30 00:59:13 -05:00