Commit 4e3ac9e9 authored by Jaroslava Fiedlerova's avatar Jaroslava Fiedlerova

Merge remote-tracking branch 'origin/uhd_priority_in_nrUE' into integration_2026_w10 (!3954)

Increase UHD streamer thread priority in nrUE

This minor change allows nrUE UHD threads to inherit priority
OAI_PRIORITY_RT_MAX.
parents e6105b9d 7d058eb0
...@@ -240,6 +240,13 @@ static void trigger_deregistration(int sig) ...@@ -240,6 +240,13 @@ static void trigger_deregistration(int sig)
} }
} }
void *nrue_ru_start_thread(void *arg)
{
(void)arg;
nrue_ru_start();
return NULL;
}
int NB_UE_INST = 1; int NB_UE_INST = 1;
configmodule_interface_t *uniqCfg = NULL; configmodule_interface_t *uniqCfg = NULL;
nrLDPC_coding_interface_t nrLDPC_coding_interface = {0}; nrLDPC_coding_interface_t nrLDPC_coding_interface = {0};
...@@ -450,7 +457,11 @@ int main(int argc, char **argv) ...@@ -450,7 +457,11 @@ int main(int argc, char **argv)
load_module_shlib("imscope_record", NULL, 0, PHY_vars_UE_g[0][0]); load_module_shlib("imscope_record", NULL, 0, PHY_vars_UE_g[0][0]);
} }
nrue_ru_start(); // Launch a temporary high-priority thread to start the UE RU, ensuring radio library threads inherit this priority
pthread_t ru_start_thread;
threadCreate(&ru_start_thread, nrue_ru_start_thread, NULL, "ru_start_thread", -1, OAI_PRIORITY_RT_MAX);
int ret = pthread_join(ru_start_thread, NULL);
AssertFatal(ret == 0, "pthread_join error %d, errno %d (%s)\n", ret, errno, strerror(errno));
for (int inst = 0; inst < NB_UE_INST; inst++) { for (int inst = 0; inst < NB_UE_INST; inst++) {
LOG_I(PHY,"Intializing UE Threads for instance %d ...\n", inst); LOG_I(PHY,"Intializing UE Threads for instance %d ...\n", inst);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment