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 <kai.vehmanen@linux.intel.com>
This commit is contained in:
Kai Vehmanen 2024-04-09 19:05:29 +03:00 committed by Liam Girdwood
parent 031619c526
commit e9b238f826
1 changed files with 2 additions and 1 deletions

View File

@ -55,8 +55,9 @@ struct perf_cnt_data {
* "cpu" timestamps to be equal.
*/
#ifdef __ZEPHYR__
#include <zephyr/timing/timing.h>
#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 */