Merge remote-tracking branch 'origin/softmodem-caps' into integration_2024_w22

This commit is contained in:
Robert Schmidt
2024-06-03 21:37:35 +02:00
58 changed files with 764 additions and 345 deletions
+5 -2
View File
@@ -622,7 +622,7 @@ int main( int argc, char **argv ) {
mode = normal_txrx;
memset(tx_max_power,0,sizeof(int)*MAX_NUM_CCs);
logInit();
set_latency_target();
lock_memory_to_ram();
printf("Reading in command-line options\n");
get_options(uniqCfg);
@@ -633,6 +633,10 @@ int main( int argc, char **argv ) {
exit(-1);
}
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");
if (get_softmodem_params()->do_ra)
AssertFatal(get_softmodem_params()->phy_test == 0,"RA and phy_test are mutually exclusive\n");
@@ -677,7 +681,6 @@ int main( int argc, char **argv ) {
AssertFatal(ret == 0, "cannot create ITTI tasks\n");
}
mlockall(MCL_CURRENT | MCL_FUTURE);
pthread_cond_init(&sync_cond,NULL);
pthread_mutex_init(&sync_mutex, NULL);
usleep(1000);