Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xtos: perf_cnt: use correct timing_counter_get() #9016

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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