From 83313f92f1b33e2a709c7a43476a5044ef0baf51 Mon Sep 17 00:00:00 2001 From: knopp Date: Tue, 21 Jul 2015 08:52:57 +0000 Subject: [PATCH] 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 --- targets/RT/USER/lte-ue.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/targets/RT/USER/lte-ue.c b/targets/RT/USER/lte-ue.c index 88b7be5138..bb117a2f71 100644 --- a/targets/RT/USER/lte-ue.c +++ b/targets/RT/USER/lte-ue.c @@ -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; + } } } -- GitLab