option q is to set cpu measurements but it is hardcoded in some places

This commit is contained in:
Laurent THOMAS
2024-09-18 16:02:14 +02:00
parent ba2d7aad18
commit 31f770978c
25 changed files with 114 additions and 140 deletions
+3 -3
View File
@@ -1460,7 +1460,7 @@ static void *ru_stats_thread(void *param) {
while (!oai_exit) {
sleep(1);
if (opp_enabled) {
if (cpu_meas_enabled) {
if (ru->feprx) print_meas(&ru->ofdm_demod_stats,"feprx_ru",NULL,NULL);
if (ru->feptx_ofdm) print_meas(&ru->ofdm_mod_stats,"feptx_ofdm_ru",NULL,NULL);
@@ -2322,7 +2322,7 @@ void init_RU_proc(RU_t *ru) {
init_feptx_thread(ru, NULL);
}
if (opp_enabled == 1)
if (cpu_meas_enabled)
pthread_create(&ru->ru_stats_thread, NULL, ru_stats_thread, (void *)ru);
}
@@ -2420,7 +2420,7 @@ void kill_RU_proc(RU_t *ru) {
}
}
if (opp_enabled) {
if (cpu_meas_enabled) {
LOG_D(PHY, "Joining ru_stats_thread\n");
pthread_join(ru->ru_stats_thread, NULL);
}