optim measurement function checkcpu()
This commit is contained in:
@@ -528,9 +528,11 @@ static void *UE_thread_rxn_txnp4(void *arg) {
|
|||||||
initRefTimes(t3);
|
initRefTimes(t3);
|
||||||
pickTime(current);
|
pickTime(current);
|
||||||
updateTimes(proc->gotIQs, &t2, 10000, "Delay to wake up UE_Thread_Rx (case 2)");
|
updateTimes(proc->gotIQs, &t2, 10000, "Delay to wake up UE_Thread_Rx (case 2)");
|
||||||
|
check(2200);
|
||||||
|
|
||||||
// Process Rx data for one sub-frame
|
// Process Rx data for one sub-frame
|
||||||
lte_subframe_t sf_type = subframe_select( &UE->frame_parms, proc->subframe_rx);
|
lte_subframe_t sf_type = subframe_select( &UE->frame_parms, proc->subframe_rx);
|
||||||
|
check(100);
|
||||||
if ((sf_type == SF_DL) ||
|
if ((sf_type == SF_DL) ||
|
||||||
(UE->frame_parms.frame_type == FDD) ||
|
(UE->frame_parms.frame_type == FDD) ||
|
||||||
(sf_type == SF_S)) {
|
(sf_type == SF_S)) {
|
||||||
@@ -553,7 +555,7 @@ static void *UE_thread_rxn_txnp4(void *arg) {
|
|||||||
}
|
}
|
||||||
phy_procedures_UE_RX( UE, proc, 0, 0, UE->mode, no_relay, NULL );
|
phy_procedures_UE_RX( UE, proc, 0, 0, UE->mode, no_relay, NULL );
|
||||||
}
|
}
|
||||||
|
check(900);
|
||||||
if (UE->mac_enabled==1) {
|
if (UE->mac_enabled==1) {
|
||||||
|
|
||||||
ret = mac_xface->ue_scheduler(UE->Mod_id,
|
ret = mac_xface->ue_scheduler(UE->Mod_id,
|
||||||
@@ -583,6 +585,7 @@ static void *UE_thread_rxn_txnp4(void *arg) {
|
|||||||
UE->Mod_id, proc->frame_rx, proc->subframe_tx,txt );
|
UE->Mod_id, proc->frame_rx, proc->subframe_tx,txt );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
check(350);
|
||||||
// Prepare the future Tx data
|
// Prepare the future Tx data
|
||||||
|
|
||||||
if ((subframe_select( &UE->frame_parms, proc->subframe_tx) == SF_UL) ||
|
if ((subframe_select( &UE->frame_parms, proc->subframe_tx) == SF_UL) ||
|
||||||
@@ -596,6 +599,7 @@ static void *UE_thread_rxn_txnp4(void *arg) {
|
|||||||
if (UE->mode != loop_through_memory)
|
if (UE->mode != loop_through_memory)
|
||||||
phy_procedures_UE_S_TX(UE,0,0,no_relay);
|
phy_procedures_UE_S_TX(UE,0,0,no_relay);
|
||||||
updateTimes(current, &t3, 10000, "Delay to process sub-frame (case 3)");
|
updateTimes(current, &t3, 10000, "Delay to process sub-frame (case 3)");
|
||||||
|
check(300);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -603,10 +607,6 @@ static void *UE_thread_rxn_txnp4(void *arg) {
|
|||||||
return &UE_thread_rxtx_retval;
|
return &UE_thread_rxtx_retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define RX_OFF_MAX 10
|
|
||||||
#define RX_OFF_MIN 5
|
|
||||||
#define RX_OFF_MID ((RX_OFF_MAX+RX_OFF_MIN)/2)
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief This is the main UE thread.
|
* \brief This is the main UE thread.
|
||||||
* This thread controls the other three UE threads:
|
* This thread controls the other three UE threads:
|
||||||
|
|||||||
Reference in New Issue
Block a user