arc_timer: fix wrong programmed limit when entering idle
The timer counts from 0 to programmed_limit included. Change-Id: Ifc8585210c319f5452fafc911d4f6d72c4b91eaa Signed-off-by: Simon Desfarges <simon.desfarges@intel.com>
This commit is contained in:
parent
9916452085
commit
e6ded3f581
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ void _timer_idle_enter(int32_t ticks)
|
|||
}
|
||||
|
||||
programmed_ticks = ticks;
|
||||
programmed_limit = (programmed_ticks * cycles_per_tick);
|
||||
programmed_limit = (programmed_ticks * cycles_per_tick) - 1;
|
||||
|
||||
timer0_limit_register_set(programmed_limit);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue