linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* OMAP1: unnecessary timer interrupt handler code?
@ 2011-05-08 16:28 Russell King - ARM Linux
  2011-05-09  6:03 ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: Russell King - ARM Linux @ 2011-05-08 16:28 UTC (permalink / raw)
  To: linux-omap

MPU timer 2 is used on OMAP1 for the clock source and scheduler clock.
It registers an interrupt, which counts the number of overflows of
this timer.  However, this counter is only referenced by the interrupt
handler.

So, it seems that the following code serves very little purpose.  Can
it be simply deleted?

static unsigned long omap_mpu_timer2_overflows;

static irqreturn_t omap_mpu_timer2_interrupt(int irq, void *dev_id)
{
        omap_mpu_timer2_overflows++;
        return IRQ_HANDLED;
}

static struct irqaction omap_mpu_timer2_irq = {
        .name           = "mpu_timer2",
        .flags          = IRQF_DISABLED,
        .handler        = omap_mpu_timer2_interrupt,
};

...
static void __init omap_init_clocksource(unsigned long rate)
{
...
        setup_irq(INT_TIMER2, &omap_mpu_timer2_irq);
...
}

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-10 18:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-08 16:28 OMAP1: unnecessary timer interrupt handler code? Russell King - ARM Linux
2011-05-09  6:03 ` Tony Lindgren
2011-05-10 12:26   ` Kevin Hilman
2011-05-10 18:31     ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).