Commit 83313f92 authored by knopp's avatar knopp

handled tx/rx instance_cnt for allow some slack for UE threads

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7715 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent a1184991
......@@ -1192,10 +1192,12 @@ void *UE_thread(void *arg)
}
}
} else {
LOG_E( PHY, "[SCHED][UE] UE RX thread busy!!\n" );
exit_fun("nothing to add");
LOG_E( PHY, "[SCHED][UE] UE RX thread busy (IC %d)!!\n", instance_cnt_rx);
if (instance_cnt_rx > 1) {
exit_fun("instance_cnt_rx > 1");
return &UE_thread_retval;
}
}
if ((tx_enabled==1)&&(UE->mode != loop_through_memory)) {
......@@ -1226,11 +1228,13 @@ void *UE_thread(void *arg)
LOG_D(HW,"signalled tx thread to wake up, hw_frame %d, hw_subframe %d (time %lli)\n", frame, hw_subframe, rt_get_time_ns()-T0 );
} else {
LOG_E( PHY, "[SCHED][UE] UE TX thread busy!!\n" );
exit_fun("nothing to add");
LOG_E( PHY, "[SCHED][UE] UE TX thread busy (IC %d)!!\n" );
if (instance_cnt_tx>1) {
exit_fun("instance_cnt_tx > 1");
return &UE_thread_retval;
}
}
}
}
} else {
......
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