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
wangjie
OpenXG-RAN
Commits
6cff88b9
Commit
6cff88b9
authored
Feb 09, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
free memory on teardown after all RU/eNB threads have been released
parent
c518ed89
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+0
-5
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+0
-2
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+11
-0
No files found.
targets/RT/USER/lte-enb.c
View file @
6cff88b9
...
...
@@ -1139,10 +1139,5 @@ void stop_eNB(int nb_inst) {
for
(
int
inst
=
0
;
inst
<
nb_inst
;
inst
++
)
{
LOG_I
(
PHY
,
"Killing eNB %d processing threads
\n
"
,
inst
);
kill_eNB_proc
(
inst
);
/* release memory used by these threads (incomplete) */
for
(
int
cc_id
=
0
;
cc_id
<
RC
.
nb_CC
[
inst
];
cc_id
++
)
{
free_transport
(
RC
.
eNB
[
inst
][
cc_id
]);
phy_free_lte_eNB
(
RC
.
eNB
[
inst
][
cc_id
]);
}
}
}
targets/RT/USER/lte-ru.c
View file @
6cff88b9
...
...
@@ -2251,8 +2251,6 @@ void stop_RU(int nb_ru)
for
(
int
inst
=
0
;
inst
<
nb_ru
;
inst
++
)
{
LOG_I
(
PHY
,
"Stopping RU %d processing threads
\n
"
,
inst
);
kill_RU_proc
(
inst
);
/* release memory used by these threads (incomplete) */
phy_free_RU
(
RC
.
ru
[
inst
]);
}
}
...
...
targets/RT/USER/lte-softmodem.c
View file @
6cff88b9
...
...
@@ -1594,6 +1594,17 @@ int main( int argc, char **argv )
}
else
{
stop_eNB
(
NB_eNB_INST
);
stop_RU
(
NB_RU
);
/* release memory used by the RU/eNB threads (incomplete), after all
* threads have been stopped (they partially use the same memory) */
for
(
int
inst
=
0
;
inst
<
NB_eNB_INST
;
inst
++
)
{
for
(
int
cc_id
=
0
;
cc_id
<
RC
.
nb_CC
[
inst
];
cc_id
++
)
{
free_transport
(
RC
.
eNB
[
inst
][
cc_id
]);
phy_free_lte_eNB
(
RC
.
eNB
[
inst
][
cc_id
]);
}
}
for
(
int
inst
=
0
;
inst
<
NB_RU
;
inst
++
)
{
phy_free_RU
(
RC
.
ru
[
inst
]);
}
free_lte_top
();
}
...
...
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