[PATCH] ARM: timer-sp: ensure interrupt is cleared at sp804_clockevents_init

Chanho Min chanho.min at lge.com
Tue Sep 16 19:58:04 PDT 2014


> > +	/* Ensure interrupt is cleared */
> > +	writel(1, clkevt_base + TIMER_INTCLR);
> >  	setup_irq(irq, &sp804_timer_irq);
> >  	clockevents_config_and_register(evt, rate, 0xf, 0xffffffff);
> 
> Or just flip the order of clockevents_config_and_register() and
> setup_irq()? We've done this in other clockevents drivers.
It won't fix this issue. clockevents_config_and_register will do nothing
if the higher rated device is registered. if pending interrupt is existed,
interrupt will be triggered as soon as setup_irq is done.




More information about the linux-arm-kernel mailing list