modify threading option into config file
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
uint64_t runtime,
|
||||
uint64_t deadline,
|
||||
uint64_t period);*/
|
||||
extern uint8_t get_thread_worker_conf(void);
|
||||
|
||||
|
||||
void free_eNB_dlsch(LTE_eNB_DLSCH_t *dlsch)
|
||||
@@ -614,7 +615,7 @@ int dlsch_encoding_all(PHY_VARS_eNB *eNB,
|
||||
}
|
||||
}
|
||||
|
||||
if(get_thread_worker_stage())
|
||||
if(get_thread_worker_conf() == WORKER_ENABLE)
|
||||
{
|
||||
if(C >= 8)//one main three worker
|
||||
{
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
#include "targets/RT/USER/rt_wrapper.h"
|
||||
#include "transport_proto.h"
|
||||
|
||||
extern uint8_t get_thread_worker_stage(void);
|
||||
extern uint8_t get_thread_worker_conf(void);
|
||||
|
||||
void free_eNB_ulsch(LTE_eNB_ULSCH_t *ulsch)
|
||||
{
|
||||
@@ -723,7 +723,7 @@ int ulsch_decoding_data(PHY_VARS_eNB *eNB,int UE_id,int harq_pid,int llr8_flag)
|
||||
int ulsch_decoding_data_all(PHY_VARS_eNB *eNB,int UE_id,int harq_pid,int llr8_flag)
|
||||
{
|
||||
int ret = 0;
|
||||
/*if(get_thread_worker_stage())
|
||||
/*if(get_thread_worker_conf() == WORKER_ENABLE)
|
||||
{
|
||||
ret = ulsch_decoding_data_2thread(eNB,UE_id,harq_pid,llr8_flag);
|
||||
}
|
||||
|
||||
+13
-4
@@ -270,7 +270,6 @@ typedef enum {
|
||||
REMOTE_IF4p5 =3,
|
||||
REMOTE_IF1pp =4,
|
||||
MAX_RU_IF_TYPES =5
|
||||
//EMULATE_RF =6
|
||||
} RU_if_south_t;
|
||||
|
||||
typedef struct RU_t_s{
|
||||
@@ -888,10 +887,20 @@ typedef struct {
|
||||
int prach_I0;
|
||||
} PHY_MEASUREMENTS_eNB;
|
||||
|
||||
typedef enum {
|
||||
PARALLEL_SINGLE_THREAD =0,
|
||||
PARALLEL_RU_L1_SPLIT =1,
|
||||
PARALLEL_RU_L1_TRX_SPLIT =2
|
||||
}PARALLEL_CONF_t;
|
||||
|
||||
typedef enum {
|
||||
WORKER_DISABLE =0,
|
||||
WORKER_ENABLE =1
|
||||
}WORKER_CONF_t;
|
||||
|
||||
typedef struct THREAD_STRUCT_s {
|
||||
uint8_t paralle_stage;
|
||||
uint8_t worker_stage;
|
||||
int core_number;
|
||||
PARALLEL_CONF_t parallel_conf;
|
||||
WORKER_CONF_t worker_conf;
|
||||
} THREAD_STRUCT;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user