From 08ed1b4d9a7eec47ef1051331f504092f26d73c0 Mon Sep 17 00:00:00 2001 From: Tomasz Lauda Date: Mon, 10 Sep 2018 10:34:55 +0200 Subject: [PATCH] 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 --- src/lib/agent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/agent.c b/src/lib/agent.c index b672f2355..fc907408c 100644 --- a/src/lib/agent.c +++ b/src/lib/agent.c @@ -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 */