s5j/timerisr: rework up_timerisr()
Resetting the timer before calling sched_process_timer() seems more
logical.
****************************************************************************/
int up_timerisr(int irq, uint32_t *regs)
{
- /* Process timer interrupt */
+ /* Reset timer */
+ s5j_mct_clear_pending(MCT_L0);
+ /* Process timer interrupt */
sched_process_timer();
- s5j_mct_clear_pending(MCT_L0);
return 0;
}
