diff options
author | Zhigang Lu <zlu@tilera.com> | 2014-01-28 03:03:50 +0100 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2014-03-07 17:19:48 +0100 |
commit | 8d61dd7d3e374eb52a174ab04169b04e3d9d729f (patch) | |
tree | 0312a9743c802bc329ebcb6ec7952727a5adc204 /arch/tile/kernel/irq.c | |
parent | tile: Enable NMIs on return from handle_nmi() without errors (diff) | |
download | linux-8d61dd7d3e374eb52a174ab04169b04e3d9d729f.tar.xz linux-8d61dd7d3e374eb52a174ab04169b04e3d9d729f.zip |
tile/perf: Support perf_events on tilegx and tilepro
Add perf support for tile architecture.
Signed-off-by: Zhigang Lu <zlu@tilera.com>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/kernel/irq.c')
-rw-r--r-- | arch/tile/kernel/irq.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/tile/kernel/irq.c b/arch/tile/kernel/irq.c index 0586fdb9352d..906a76bdb31d 100644 --- a/arch/tile/kernel/irq.c +++ b/arch/tile/kernel/irq.c @@ -21,6 +21,7 @@ #include <hv/drv_pcie_rc_intf.h> #include <arch/spr_def.h> #include <asm/traps.h> +#include <linux/perf_event.h> /* Bit-flag stored in irq_desc->chip_data to indicate HW-cleared irqs. */ #define IS_HW_CLEARED 1 @@ -261,6 +262,23 @@ void ack_bad_irq(unsigned int irq) } /* + * /proc/interrupts printing: + */ +int arch_show_interrupts(struct seq_file *p, int prec) +{ +#ifdef CONFIG_PERF_EVENTS + int i; + + seq_printf(p, "%*s: ", prec, "PMI"); + + for_each_online_cpu(i) + seq_printf(p, "%10llu ", per_cpu(perf_irqs, i)); + seq_puts(p, " perf_events\n"); +#endif + return 0; +} + +/* * Generic, controller-independent functions: */ |