From 142fa8f4da9d7c8ee6e1cdc0a2cc9b4f2ce1a226 Mon Sep 17 00:00:00 2001
From: Cedric Roux <cedric.roux@eurecom.fr>
Date: Tue, 26 Jun 2018 10:43:31 +0200
Subject: [PATCH] hotfix: remove code that deadlocks
We have to not call that function here because
it blocks everything if number of proc > 4.
---
targets/RT/USER/lte-ru.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/targets/RT/USER/lte-ru.c b/targets/RT/USER/lte-ru.c
index d86f2f6c6b..304dca1cde 100644
--- a/targets/RT/USER/lte-ru.c
+++ b/targets/RT/USER/lte-ru.c
@@ -1781,10 +1781,6 @@ static void* ru_thread( void* param ) {
// wakeup all eNB processes waiting for this RU
if (ru->num_eNB>0) wakeup_eNBs(ru);
- // wait until eNBs are finished subframe RX n and TX n+sf_ahead
- if(get_nprocs() > 4)
- wait_on_condition(&proc->mutex_eNBs,&proc->cond_eNBs,&proc->instance_cnt_eNBs,"ru_thread");
-
#ifndef PHY_TX_THREAD
if(get_nprocs() <= 4){
// do TX front-end processing if needed (precoding and/or IDFTs)
--
GitLab