]> Pileus Git - ~andy/linux/commitdiff
parisc: tlb flush counting fix for SMP and UP
authorHelge Deller <deller@gmx.de>
Tue, 7 May 2013 21:42:47 +0000 (21:42 +0000)
committerHelge Deller <deller@gmx.de>
Tue, 7 May 2013 21:44:04 +0000 (23:44 +0200)
Fix up build error on UP and show correctly number of function call
(ipi) irqs.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/hardirq.h
arch/parisc/include/asm/tlbflush.h
arch/parisc/kernel/irq.c
arch/parisc/kernel/smp.c

index a9c0fb195253ec78d650e9be684a7bb567e619e5..12373c4dababec920c0ec42f120064011567d4b6 100644 (file)
@@ -19,12 +19,8 @@ typedef struct {
 #ifdef CONFIG_SMP
        unsigned int irq_resched_count;
        unsigned int irq_call_count;
-       /*
-        * irq_tlb_count is double-counted in irq_call_count, so it must be
-        * subtracted from irq_call_count when displaying irq_call_count
-        */
-       unsigned int irq_tlb_count;
 #endif
+       unsigned int irq_tlb_count;
 } ____cacheline_aligned irq_cpustat_t;
 
 DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
index 8f1a8100bf2df394f0ca78e90dbec9f33d33125d..5273da991e062c841ac40efdb0f3174a4df8cde3 100644 (file)
@@ -22,6 +22,8 @@ extern spinlock_t pa_tlb_lock;
 extern void flush_tlb_all(void);
 extern void flush_tlb_all_local(void *);
 
+#define smp_flush_tlb_all()    flush_tlb_all()
+
 /*
  * flush_tlb_mm()
  *
index a237e32ede190a83641383a2d6248f14f7e97c92..e255db0bb7619cf92e8581cae017f01f20c4718d 100644 (file)
@@ -175,14 +175,13 @@ int arch_show_interrupts(struct seq_file *p, int prec)
        seq_printf(p, "  Rescheduling interrupts\n");
        seq_printf(p, "%*s: ", prec, "CAL");
        for_each_online_cpu(j)
-               seq_printf(p, "%10u ", irq_stats(j)->irq_call_count -
-                                       irq_stats(j)->irq_tlb_count);
+               seq_printf(p, "%10u ", irq_stats(j)->irq_call_count);
        seq_printf(p, "  Function call interrupts\n");
+#endif
        seq_printf(p, "%*s: ", prec, "TLB");
        for_each_online_cpu(j)
                seq_printf(p, "%10u ", irq_stats(j)->irq_tlb_count);
        seq_printf(p, "  TLB shootdowns\n");
-#endif
        return 0;
 }
 
index 218e20bff9d20eceb66db3943375c92c711ae62a..e3614fb343e5eca796f919482e8873ae48e17c19 100644 (file)
@@ -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.
  */