Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常顺宇
OpenXG-RAN
Commits
fa432bdd
Commit
fa432bdd
authored
Feb 13, 2017
by
Laurent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optim measurement function checkcpu()
parent
012d333c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+5
-5
No files found.
targets/RT/USER/lte-ue.c
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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment