Skip to content

Commit 6cc76a5

Browse files
tobonexkv2019i
authored andcommitted
zephyr_ll:change time counting for telemetry
Change performance counter for telemetry to abstract one. This enables choice of time source. Signed-off-by: Tobiasz Dryjanski <tobiaszx.dryjanski@intel.com>
1 parent 3cce247 commit 6cc76a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/schedule/zephyr_ll.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,11 @@ static void zephyr_ll_run(void *data)
254254
static void schedule_ll_callback(void *data)
255255
{
256256
#ifdef CONFIG_SOF_TELEMETRY
257-
const uint32_t begin_stamp = (uint32_t)sof_cycle_get_64();
257+
const uint32_t begin_stamp = (uint32_t)telemetry_timestamp();
258258
#endif
259259
zephyr_ll_run(data);
260260
#ifdef CONFIG_SOF_TELEMETRY
261-
const uint32_t current_stamp = (uint32_t)sof_cycle_get_64();
261+
const uint32_t current_stamp = (uint32_t)telemetry_timestamp();
262262

263263
telemetry_update(begin_stamp, current_stamp);
264264
#endif

0 commit comments

Comments
 (0)