Skip to content

Commit

Permalink
xtos: perf_cnt: use correct timing_counter_get()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kv2019i committed Apr 12, 2024
1 parent a43981e commit 7c55027
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xtos/include/sof/lib/perf_cnt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 7c55027

Please sign in to comment.