Commit 613088f3 authored by Raymond Knopp's avatar Raymond Knopp

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6347 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent d72406ae
...@@ -95,10 +95,10 @@ static void * dlsch_thread(void *param) { ...@@ -95,10 +95,10 @@ static void * dlsch_thread(void *param) {
//unsigned long cpuid; //unsigned long cpuid;
unsigned char dlsch_thread_index = *((unsigned char *)param); unsigned char dlsch_thread_index = *((unsigned char *)param);
unsigned int ret; unsigned int ret=0;
uint8_t harq_pid; uint8_t harq_pid;
RTIME time_in,time_out;
#ifdef RTAI #ifdef RTAI
RT_TASK *task; RT_TASK *task;
char task_name[8]; char task_name[8];
...@@ -159,7 +159,7 @@ static void * dlsch_thread(void *param) { ...@@ -159,7 +159,7 @@ static void * dlsch_thread(void *param) {
LOG_I(PHY,"[SCHED][DLSCH] Frame %d: Calling dlsch_decoding with dlsch_thread_index = %d\n",phy_vars_ue->frame_rx,dlsch_thread_index); LOG_I(PHY,"[SCHED][DLSCH] Frame %d: Calling dlsch_decoding with dlsch_thread_index = %d\n",phy_vars_ue->frame_rx,dlsch_thread_index);
time_in = rt_get_time_ns();
if (phy_vars_ue->frame_rx < phy_vars_ue->dlsch_errors[eNB_id]) { if (phy_vars_ue->frame_rx < phy_vars_ue->dlsch_errors[eNB_id]) {
phy_vars_ue->dlsch_errors[eNB_id]=0; phy_vars_ue->dlsch_errors[eNB_id]=0;
...@@ -244,7 +244,6 @@ static void * dlsch_thread(void *param) { ...@@ -244,7 +244,6 @@ static void * dlsch_thread(void *param) {
} }
*/ */
time_out = rt_get_time_ns();
#ifdef DEBUG_PHY #ifdef DEBUG_PHY
LOG_I(PHY,"[UE %d][PDSCH %x/%d] Frame %d subframe %d: PDSCH/DLSCH decoding iter %d (mcs %d, rv %d, TBS %d)\n", LOG_I(PHY,"[UE %d][PDSCH %x/%d] Frame %d subframe %d: PDSCH/DLSCH decoding iter %d (mcs %d, rv %d, TBS %d)\n",
......
...@@ -53,12 +53,6 @@ ...@@ -53,12 +53,6 @@
#include "MAC_INTERFACE/extern.h" #include "MAC_INTERFACE/extern.h"
#ifdef CBMIMO1
#include "ARCH/CBMIMO1/DEVICE_DRIVER/cbmimo1_device.h"
#include "ARCH/CBMIMO1/DEVICE_DRIVER/extern.h"
#include "ARCH/CBMIMO1/DEVICE_DRIVER/defs.h"
#endif // CBMIMO1
#include "UTIL/LOG/vcd_signal_dumper.h" #include "UTIL/LOG/vcd_signal_dumper.h"
RTIME time0,time1; RTIME time0,time1;
...@@ -90,22 +84,21 @@ extern pthread_cond_t dlsch_cond[8]; ...@@ -90,22 +84,21 @@ extern pthread_cond_t dlsch_cond[8];
static void * rx_pdsch_thread(void *param) { static void * rx_pdsch_thread(void *param) {
//unsigned long cpuid; //unsigned long cpuid;
uint8_t rx_pdsch_thread_index = 0;
uint8_t dlsch_thread_index = 0; uint8_t dlsch_thread_index = 0;
uint8_t pilot1,pilot2,pilot3,harq_pid,subframe; uint8_t pilot2,harq_pid,subframe;
// uint8_t last_slot; // uint8_t last_slot;
uint8_t dual_stream_UE = 0; uint8_t dual_stream_UE = 0;
uint8_t i_mod = 0; uint8_t i_mod = 0;
RTIME time_in,time_out;
#ifdef RTAI #ifdef RTAI
RT_TASK *task; RT_TASK *task;
#endif #endif
int m,eNB_id = 0; int m,eNB_id = 0;
int eNB_id_i = 1; int eNB_id_i = 1;
PHY_VARS_UE *UE = PHY_vars_UE_g[0]; PHY_VARS_UE *UE = PHY_vars_UE_g[0][0];
#ifdef RTAI #ifdef RTAI
task = rt_task_init_schmod(nam2num("RX_PDSCH_THREAD"), 0, 0, 0, SCHED_FIFO, 0xF); task = rt_task_init_schmod(nam2num("RX_PDSCH_THREAD"), 0, 0, 0, SCHED_FIFO, 0xF);
...@@ -128,15 +121,11 @@ static void * rx_pdsch_thread(void *param) { ...@@ -128,15 +121,11 @@ static void * rx_pdsch_thread(void *param) {
rt_make_hard_real_time(); rt_make_hard_real_time();
#endif #endif
if (UE->lte_frame_parms.Ncp == 0) { // normal prefix if (UE->lte_frame_parms.Ncp == NORMAL) { // normal prefix
pilot1 = 4;
pilot2 = 7; pilot2 = 7;
pilot3 = 11;
} }
else { // extended prefix else { // extended prefix
pilot1 = 3;
pilot2 = 6; pilot2 = 6;
pilot3 = 9;
} }
...@@ -190,7 +179,6 @@ static void * rx_pdsch_thread(void *param) { ...@@ -190,7 +179,6 @@ static void * rx_pdsch_thread(void *param) {
LOG_D(PHY,"[SCHED][RX_PDSCH] Frame %d, slot %d: Calling rx_pdsch_decoding with harq_pid %d\n",UE->frame_rx,UE->slot_rx,harq_pid); LOG_D(PHY,"[SCHED][RX_PDSCH] Frame %d, slot %d: Calling rx_pdsch_decoding with harq_pid %d\n",UE->frame_rx,UE->slot_rx,harq_pid);
time_in = rt_get_time_ns();
// Check if we are in even or odd slot // Check if we are in even or odd slot
if (UE->slot_rx%2) { // odd slots if (UE->slot_rx%2) { // odd slots
...@@ -256,7 +244,6 @@ static void * rx_pdsch_thread(void *param) { ...@@ -256,7 +244,6 @@ static void * rx_pdsch_thread(void *param) {
} }
} }
time_out = rt_get_time_ns();
if (pthread_mutex_lock(&rx_pdsch_mutex) != 0) { if (pthread_mutex_lock(&rx_pdsch_mutex) != 0) {
msg("[openair][SCHED][RX_PDSCH] error locking mutex.\n"); msg("[openair][SCHED][RX_PDSCH] error locking mutex.\n");
......
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