Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
fa432bdd
Commit
fa432bdd
authored
8 years ago
by
Thomas Laurent
Browse files
Options
Downloads
Patches
Plain Diff
optim measurement function checkcpu()
parent
012d333c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!116
Develop integration w07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
targets/RT/USER/lte-ue.c
+5
-5
5 additions, 5 deletions
targets/RT/USER/lte-ue.c
with
5 additions
and
5 deletions
targets/RT/USER/lte-ue.c
+
5
−
5
View file @
fa432bdd
...
@@ -528,9 +528,11 @@ static void *UE_thread_rxn_txnp4(void *arg) {
...
@@ -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) {
...
@@ -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) {
...
@@ -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) {
...
@@ -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) {
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment