From e9b238f8266c8957f4ff3fd577f952017c0545fc Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Tue, 9 Apr 2024 19:05:29 +0300 Subject: [PATCH] xtos: perf_cnt: use correct timing_counter_get() Do not use arch_timing_counter() directly, but instead use the public timing_counter_get(). Signed-off-by: Kai Vehmanen --- xtos/include/sof/lib/perf_cnt.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xtos/include/sof/lib/perf_cnt.h b/xtos/include/sof/lib/perf_cnt.h index 1bae17e14..1eb078674 100644 --- a/xtos/include/sof/lib/perf_cnt.h +++ b/xtos/include/sof/lib/perf_cnt.h @@ -55,8 +55,9 @@ struct perf_cnt_data { * "cpu" timestamps to be equal. */ #ifdef __ZEPHYR__ + #include #ifdef CONFIG_TIMING_FUNCTIONS - #define perf_cnt_get_cpu_ts arch_timing_counter_get + #define perf_cnt_get_cpu_ts timing_counter_get #else #define perf_cnt_get_cpu_ts sof_cycle_get_64 #endif /* CONFIG_TIMING_FUNCTIONS */