mirror of https://github.com/thesofproject/sof.git
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:
parent
031619c526
commit
e9b238f826
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue