powerpc: Make irq_stat.timers_irqs counting more specific
Current irq_stat.timers_irqs counting doesn't discriminate timer event handler and other timer interrupt(like arch_irq_work_raise). Sometimes we need to know exactly how much interrupts timer event handler fired, so let's be more specific on this. Signed-off-by: Fan Du <fan.du@windriver.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
0ce636700c
commit
c041cfa2af
@@ -510,7 +510,6 @@ void timer_interrupt(struct pt_regs * regs)
|
||||
*/
|
||||
may_hard_irq_enable();
|
||||
|
||||
__get_cpu_var(irq_stat).timer_irqs++;
|
||||
|
||||
#if defined(CONFIG_PPC32) && defined(CONFIG_PMAC)
|
||||
if (atomic_read(&ppc_n_lost_interrupts) != 0)
|
||||
@@ -532,10 +531,12 @@ void timer_interrupt(struct pt_regs * regs)
|
||||
*next_tb = ~(u64)0;
|
||||
if (evt->event_handler)
|
||||
evt->event_handler(evt);
|
||||
__get_cpu_var(irq_stat).timer_irqs_event++;
|
||||
} else {
|
||||
now = *next_tb - now;
|
||||
if (now <= DECREMENTER_MAX)
|
||||
set_dec((int)now);
|
||||
__get_cpu_var(irq_stat).timer_irqs_others++;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PPC64
|
||||
|
Reference in New Issue
Block a user