timer_domain: set last_tick to ticks_req in order to avoid drift

In the case of scheduling irregularities the drift may accumulate in the
scheduling reference value. By ensuring we always refer to the previous
requested time the drift can be prevented.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
This commit is contained in:
Bartosz Kokoszko 2021-01-29 18:09:48 +01:00 committed by Liam Girdwood
parent 10656d614c
commit 9a08028a76
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ static void timer_domain_set(struct ll_schedule_domain *domain, uint64_t start)
timer_report_delay(timer_domain->timer->id,
ticks_set - ticks_req);
domain->last_tick = ticks_set;
domain->last_tick = ticks_req;
platform_shared_commit(timer_domain, sizeof(*timer_domain));
}