Skip to content

Commit 08ed1b4

Browse files
committed
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>
1 parent 7abb55f commit 08ed1b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/lib/agent.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ void sa_init(struct sof *sof)
8787
sof->sa = sa;
8888

8989
/* set default tick timout */
90-
sa->ticks = clock_us_to_ticks(PLATFORM_WORKQ_CLOCK, PLATFORM_IDLE_TIME);
90+
sa->ticks = clock_ms_to_ticks(PLATFORM_WORKQ_CLOCK,
91+
PLATFORM_IDLE_TIME / 1000);
9192
trace_sa_value(sa->ticks);
9293

9394
/* set lst idle time to now to give time for boot completion */

0 commit comments

Comments
 (0)