diff --git a/common/utils/ocp_itti/intertask_interface.cpp b/common/utils/ocp_itti/intertask_interface.cpp index faf510712b..8ad5f63a50 100644 --- a/common/utils/ocp_itti/intertask_interface.cpp +++ b/common/utils/ocp_itti/intertask_interface.cpp @@ -475,41 +475,5 @@ typedef struct timer_elm_s { return 0; } -void log_scheduler(const char* label) -{ - int policy = sched_getscheduler(0); - struct sched_param param; - if (sched_getparam(0, ¶m) == -1) - { - LOG_E(HW, "sched_getparam: %s\n", strerror(errno)); - abort(); - } - - cpu_set_t cpu_set; - if (sched_getaffinity(0, sizeof(cpu_set), &cpu_set) == -1) - { - LOG_E(HW, "sched_getaffinity: %s\n", strerror(errno)); - abort(); - } - int num_cpus = sysconf(_SC_NPROCESSORS_ONLN); - if (num_cpus < 1) - { - LOG_E(HW, "sysconf(_SC_NPROCESSORS_ONLN): %s\n", strerror(errno)); - abort(); - } - char buffer[num_cpus]; - for (int i = 0; i < num_cpus; i++) - { - buffer[i] = CPU_ISSET(i, &cpu_set) ? 'Y' : '-'; - } - - LOG_A(HW, "Scheduler policy=%d priority=%d affinity=[%d]%.*s label=%s\n", - policy, - param.sched_priority, - num_cpus, - num_cpus, - buffer, - label); -} } // extern "C" diff --git a/common/utils/ocp_itti/intertask_interface.h b/common/utils/ocp_itti/intertask_interface.h index 2f2ad54174..84dbd15365 100644 --- a/common/utils/ocp_itti/intertask_interface.h +++ b/common/utils/ocp_itti/intertask_interface.h @@ -566,7 +566,6 @@ int timer_remove(long timer_id); int signal_handle(int *end); int signal_mask(void); -void log_scheduler(const char *label); #ifdef __cplusplus } #endif diff --git a/executables/lte-ue.c b/executables/lte-ue.c index e941690f26..2d7338c410 100644 --- a/executables/lte-ue.c +++ b/executables/lte-ue.c @@ -1740,8 +1740,6 @@ void *UE_thread(void *arg) { oai_exit=1; } - log_scheduler(__func__); - while (!oai_exit) { AssertFatal ( 0== pthread_mutex_lock(&UE->proc.mutex_synch), ""); int instance_cnt_synch = UE->proc.instance_cnt_synch;