Commit a1132a41 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 a6a3e946
......@@ -1192,9 +1192,11 @@ void *UE_thread(void *arg)
}
}
} else {
LOG_E( PHY, "[SCHED][UE] UE RX thread busy!!\n" );
exit_fun("nothing to add");
return &UE_thread_retval;
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;
}
}
......@@ -1223,12 +1225,14 @@ void *UE_thread(void *arg)
exit_fun("nothing to add");
return &UE_thread_retval;
}
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 );
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");
return &UE_thread_retval;
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;
}
}
}
......
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