From 66bb497da819649291e80da6f9a6a60895f42434 Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Thu, 19 Sep 2024 13:52:42 +0300 Subject: [PATCH] xtos: move sof/lib/perf_cnt.h to application interface The SOF perf_cnt.h provides a simple performance counter interface that is used in SOF to track performance at audio module and pipeline level. Majority of the implementation is RTOS agnostic, relying on sof_cycle_get_64() to sample platform clock, and timer_get_system() for CPU clock, both defined in rtos/timer.h. There is however some conditional rules for Zephyr to use timing_counter_get() if SOF is built with CONFIG_TIMING_FUNCTIONS=y. The amount of RTOS variation does not seem to warrant branching the whole perf_cnt.h to RTOS layer. Move perf_cnt.h back to application interface, so the single implementation can be shared. Link: https://github.com/thesofproject/sof/issues/9015 Signed-off-by: Kai Vehmanen --- {xtos => src}/include/sof/lib/perf_cnt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename {xtos => src}/include/sof/lib/perf_cnt.h (99%) diff --git a/xtos/include/sof/lib/perf_cnt.h b/src/include/sof/lib/perf_cnt.h similarity index 99% rename from xtos/include/sof/lib/perf_cnt.h rename to src/include/sof/lib/perf_cnt.h index 1eb0786746ff..471bbe283586 100644 --- a/xtos/include/sof/lib/perf_cnt.h +++ b/src/include/sof/lib/perf_cnt.h @@ -6,7 +6,7 @@ */ /** - * \file xtos/include/sof/lib/perf_cnt.h + * \file include/sof/lib/perf_cnt.h * \brief Simple performance counters * \author Marcin Maka */