linux_dsm_epyc7002/arch/mips/ath79
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
..
clock.c MIPS: ath79: Switch to the clkdev framework 2013-09-03 23:22:18 +02:00
common.c
common.h mips: delete non-required instances of include <linux/init.h> 2014-01-24 22:39:56 +01:00
dev-common.c MIPS: ath79: Remove ar933x_uart_platform.h header 2013-10-29 21:23:49 +01:00
dev-common.h
dev-gpio-buttons.c
dev-gpio-buttons.h
dev-leds-gpio.c
dev-leds-gpio.h
dev-spi.c
dev-spi.h
dev-usb.c
dev-usb.h
dev-wmac.c
dev-wmac.h
early_printk.c
gpio.c
irq.c MIPS: Add hook to get C0 performance counter interrupt 2014-11-24 07:44:53 +01:00
Kconfig usb: host: remove selects of USB_ARCH_HAS_?HCI 2014-02-18 12:36:38 -08:00
mach-ap81.c
mach-ap121.c
mach-ap136.c MIPS: ath79: Fix argument for the ap136_pc_init function 2013-06-21 18:07:02 +02:00
mach-db120.c MIPS: ath79: Fix compilation error when CONFIG_PCI is disabled 2014-10-22 23:16:59 +02:00
mach-pb44.c
mach-ubnt-xm.c
machtypes.h
Makefile
pci.c
pci.h
Platform
prom.c
setup.c MIPS: Add hook to get C0 performance counter interrupt 2014-11-24 07:44:53 +01:00