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);
...
}
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to