From cd85d5514d5c4d7e78abac923fc032457d0c5091 Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Mon, 6 May 2013 19:20:26 +0000 Subject: parisc: more irq statistics in /proc/interrupts Add framework and initial values for more fine grained statistics in /proc/interrupts. Signed-off-by: Helge Deller --- arch/parisc/kernel/smp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'arch/parisc/kernel/smp.c') diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c index fd1bb1519c2b..218e20bff9d2 100644 --- a/arch/parisc/kernel/smp.c +++ b/arch/parisc/kernel/smp.c @@ -127,7 +127,7 @@ ipi_interrupt(int irq, void *dev_id) unsigned long flags; /* Count this now; we may make a call that never returns. */ - p->ipi_count++; + inc_irq_stat(irq_call_count); mb(); /* Order interrupt and bit testing. */ @@ -155,6 +155,7 @@ ipi_interrupt(int irq, void *dev_id) case IPI_RESCHEDULE: smp_debug(100, KERN_DEBUG "CPU%d IPI_RESCHEDULE\n", this_cpu); + inc_irq_stat(irq_resched_count); scheduler_ipi(); break; -- cgit From 0fc537d1d655cdae69b489dbba46ad617cfc1373 Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Tue, 7 May 2013 21:42:47 +0000 Subject: parisc: tlb flush counting fix for SMP and UP Fix up build error on UP and show correctly number of function call (ipi) irqs. Signed-off-by: Helge Deller --- arch/parisc/kernel/smp.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'arch/parisc/kernel/smp.c') diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c index 218e20bff9d2..e3614fb343e5 100644 --- a/arch/parisc/kernel/smp.c +++ b/arch/parisc/kernel/smp.c @@ -263,17 +263,6 @@ void arch_send_call_function_single_ipi(int cpu) send_IPI_single(cpu, IPI_CALL_FUNC_SINGLE); } -/* - * Flush all other CPU's tlb and then mine. Do this with on_each_cpu() - * as we want to ensure all TLB's flushed before proceeding. - */ - -void -smp_flush_tlb_all(void) -{ - on_each_cpu(flush_tlb_all_local, NULL, 1); -} - /* * Called by secondaries to update state and initialize CPU registers. */ -- cgit