Преглед изворни кода

[MIPS] Count timer interrupts correctly.

Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Chris Dearman пре 18 година
родитељ
комит
8e15a0e35f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      arch/mips/kernel/smtc.c

+ 1 - 1
arch/mips/kernel/smtc.c

@@ -822,7 +822,7 @@ void ipi_decode(struct smtc_ipi *pipi)
 	switch (type_copy) {
 	switch (type_copy) {
 	case SMTC_CLOCK_TICK:
 	case SMTC_CLOCK_TICK:
 		irq_enter();
 		irq_enter();
-		kstat_this_cpu.irqs[MIPS_CPU_IRQ_BASE + cp0_perfcount_irq]++;
+		kstat_this_cpu.irqs[MIPS_CPU_IRQ_BASE + cp0_compare_irq]++;
 		/* Invoke Clock "Interrupt" */
 		/* Invoke Clock "Interrupt" */
 		ipi_timer_latch[dest_copy] = 0;
 		ipi_timer_latch[dest_copy] = 0;
 #ifdef CONFIG_SMTC_IDLE_HOOK_DEBUG
 #ifdef CONFIG_SMTC_IDLE_HOOK_DEBUG