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
lizhongxiao
OpenXG-RAN
Commits
658aa001
Commit
658aa001
authored
Apr 10, 2018
by
WANG Tsu-Han
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix for threading with under 8core
parent
eee76738
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+20
-2
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+5
-0
No files found.
targets/RT/USER/lte-enb.c
View file @
658aa001
...
...
@@ -243,7 +243,17 @@ static inline int rxtx(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc, char *thread_nam
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_ENB_DLSCH_ULSCH_SCHEDULER
,
0
);
if
(
oai_exit
)
return
(
-
1
);
if
(
get_nprocs
()
<=
4
)
phy_procedures_eNB_TX
(
eNB
,
proc
,
no_relay
,
NULL
,
1
);
if
(
get_nprocs
()
<=
4
){
phy_procedures_eNB_TX
(
eNB
,
proc
,
no_relay
,
NULL
,
1
);
pthread_mutex_lock
(
&
proc
[
1
].
mutex_rxtx
);
proc
[
1
].
pipe_ready
++
;
// the thread can now be woken up
if
(
pthread_cond_signal
(
&
proc
[
1
].
cond_rxtx
)
!=
0
)
{
LOG_E
(
PHY
,
"[eNB] ERROR pthread_cond_signal for eNB TXnp4 thread
\n
"
);
exit_fun
(
"ERROR pthread_cond_signal"
);
}
pthread_mutex_unlock
(
&
proc
[
1
].
mutex_rxtx
);
}
stop_meas
(
&
softmodem_stats_rxtx_sf
);
...
...
@@ -404,9 +414,17 @@ static void* eNB_thread_rxtx( void* param ) {
}
pthread_mutex_unlock
(
&
proc
->
mutex_rxtx
);
if
(
get_nprocs
()
>=
8
)
wakeup_tx
(
eNB
,
eNB
->
proc
.
ru_proc
);
else
if
(
get_nprocs
()
>
4
)
else
{
phy_procedures_eNB_TX
(
eNB
,
proc
,
no_relay
,
NULL
,
1
);
pthread_mutex_lock
(
&
proc
[
1
].
mutex_rxtx
);
proc
[
1
].
pipe_ready
++
;
// the thread can now be woken up
if
(
pthread_cond_signal
(
&
proc
[
1
].
cond_rxtx
)
!=
0
)
{
LOG_E
(
PHY
,
"[eNB] ERROR pthread_cond_signal for eNB TXnp4 thread
\n
"
);
exit_fun
(
"ERROR pthread_cond_signal"
);
}
pthread_mutex_unlock
(
&
proc
->
mutex_rxtx
);
wakeup_txfh
(
proc
,
eNB
->
proc
.
ru_proc
);
}
...
...
targets/RT/USER/lte-ru.c
View file @
658aa001
...
...
@@ -1940,6 +1940,8 @@ void kill_RU_proc(int inst)
LOG_D
(
PHY
,
"Joining pthread_FH
\n
"
);
pthread_join
(
proc
->
pthread_FH
,
NULL
);
LOG_D
(
PHY
,
"Joining pthread_FHTX
\n
"
);
pthread_join
(
proc
->
pthread_FH1
,
NULL
);
if
(
ru
->
function
==
NGFI_RRU_IF4p5
)
{
LOG_D
(
PHY
,
"Joining pthread_prach
\n
"
);
pthread_join
(
proc
->
pthread_prach
,
NULL
);
...
...
@@ -1990,15 +1992,18 @@ void kill_RU_proc(int inst)
pthread_mutex_destroy
(
&
proc
->
mutex_asynch_rxtx
);
pthread_mutex_destroy
(
&
proc
->
mutex_synch
);
pthread_mutex_destroy
(
&
proc
->
mutex_FH
);
pthread_mutex_destroy
(
&
proc
->
mutex_FH1
);
pthread_mutex_destroy
(
&
proc
->
mutex_eNBs
);
pthread_cond_destroy
(
&
proc
->
cond_prach
);
pthread_cond_destroy
(
&
proc
->
cond_FH
);
pthread_cond_destroy
(
&
proc
->
cond_FH1
);
pthread_cond_destroy
(
&
proc
->
cond_asynch_rxtx
);
pthread_cond_destroy
(
&
proc
->
cond_synch
);
pthread_cond_destroy
(
&
proc
->
cond_eNBs
);
pthread_attr_destroy
(
&
proc
->
attr_FH
);
pthread_attr_destroy
(
&
proc
->
attr_FH1
);
pthread_attr_destroy
(
&
proc
->
attr_prach
);
pthread_attr_destroy
(
&
proc
->
attr_synch
);
pthread_attr_destroy
(
&
proc
->
attr_asynch_rxtx
);
...
...
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