diff --git a/executables/nr-uesoftmodem.c b/executables/nr-uesoftmodem.c index 15fb1ae838..e588e2f75b 100644 --- a/executables/nr-uesoftmodem.c +++ b/executables/nr-uesoftmodem.c @@ -456,10 +456,6 @@ ldpc_interface_t ldpc_interface = {0}, ldpc_interface_offload = {0}; int main(int argc, char **argv) { - int set_exe_prio = 1; - if (set_exe_prio) - set_priority(79); - start_background_system(); if ((uniqCfg = load_configmodule(argc, argv, CONFIG_ENABLECMDLINEONLY)) == NULL) { @@ -484,6 +480,10 @@ int main(int argc, char **argv) //randominit (0); set_taus_seed (0); + if (!has_cap_sys_nice()) + LOG_W(UTIL, + "no SYS_NICE capability: cannot set thread priority and affinity, consider running with sudo for optimum performance\n"); + cpuf=get_cpu_freq_GHz(); itti_init(TASK_MAX, tasks_info);