agent: switch from us to ms

We should switch from microseconds to milliseconds as
difference in cycles for current timeout is 150000.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
Tomasz Lauda 2018-09-10 10:34:55 +02:00
parent 7abb55fe72
commit 08ed1b4d9a
1 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,8 @@ void sa_init(struct sof *sof)
sof->sa = sa;
/* set default tick timout */
sa->ticks = clock_us_to_ticks(PLATFORM_WORKQ_CLOCK, PLATFORM_IDLE_TIME);
sa->ticks = clock_ms_to_ticks(PLATFORM_WORKQ_CLOCK,
PLATFORM_IDLE_TIME / 1000);
trace_sa_value(sa->ticks);
/* set lst idle time to now to give time for boot completion */