Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
017151ce
Commit
017151ce
authored
Mar 08, 2019
by
Haruki NAOI
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: remove useless mutexlock.
parent
66dbbf1f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
+2
-2
openair2/LAYER2/MAC/eNB_scheduler_fairRR.c
openair2/LAYER2/MAC/eNB_scheduler_fairRR.c
+3
-3
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
+2
-2
No files found.
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
View file @
017151ce
...
@@ -1009,9 +1009,9 @@ schedule_ue_spec(module_id_t module_idP,
...
@@ -1009,9 +1009,9 @@ schedule_ue_spec(module_id_t module_idP,
,
0
,
0
#endif
#endif
);
);
pthread_mutex_lock
(
&
rrc_release_freelist
);
if
((
rrc_release_info
.
num_UEs
>
0
)
&&
(
rlc_am_mui
.
rrc_mui_num
>
0
))
{
if
((
rrc_release_info
.
num_UEs
>
0
)
&&
(
rlc_am_mui
.
rrc_mui_num
>
0
))
{
pthread_mutex_lock
(
&
rrc_release_freelist
);
uint16_t
release_total
=
0
;
uint16_t
release_total
=
0
;
for
(
release_num
=
0
,
release_ctrl
=
&
rrc_release_info
.
RRC_release_ctrl
[
0
];
for
(
release_num
=
0
,
release_ctrl
=
&
rrc_release_info
.
RRC_release_ctrl
[
0
];
...
@@ -1058,9 +1058,9 @@ schedule_ue_spec(module_id_t module_idP,
...
@@ -1058,9 +1058,9 @@ schedule_ue_spec(module_id_t module_idP,
if
(
release_total
>=
rrc_release_info
.
num_UEs
)
if
(
release_total
>=
rrc_release_info
.
num_UEs
)
break
;
break
;
}
}
pthread_mutex_unlock
(
&
rrc_release_freelist
);
}
}
pthread_mutex_unlock
(
&
rrc_release_freelist
);
for
(
ra_ii
=
0
,
ra
=
&
eNB
->
common_channels
[
CC_id
].
ra
[
0
];
ra_ii
<
NB_RA_PROC_MAX
;
ra_ii
++
,
ra
++
)
{
for
(
ra_ii
=
0
,
ra
=
&
eNB
->
common_channels
[
CC_id
].
ra
[
0
];
ra_ii
<
NB_RA_PROC_MAX
;
ra_ii
++
,
ra
++
)
{
if
((
ra
->
rnti
==
rnti
)
&&
(
ra
->
state
==
MSGCRNTI
))
{
if
((
ra
->
rnti
==
rnti
)
&&
(
ra
->
state
==
MSGCRNTI
))
{
...
...
openair2/LAYER2/MAC/eNB_scheduler_fairRR.c
View file @
017151ce
...
@@ -1291,9 +1291,9 @@ schedule_ue_spec_fairRR(module_id_t module_idP,
...
@@ -1291,9 +1291,9 @@ schedule_ue_spec_fairRR(module_id_t module_idP,
,
0
,
0
,
0
,
0
#endif
#endif
);
);
pthread_mutex_lock
(
&
rrc_release_freelist
);
if
((
rrc_release_info
.
num_UEs
>
0
)
&&
(
rlc_am_mui
.
rrc_mui_num
>
0
))
{
if
((
rrc_release_info
.
num_UEs
>
0
)
&&
(
rlc_am_mui
.
rrc_mui_num
>
0
)){
pthread_mutex_lock
(
&
rrc_release_freelist
);
uint16_t
release_total
=
0
;
uint16_t
release_total
=
0
;
for
(
uint16_t
release_num
=
0
;
release_num
<
NUMBER_OF_UE_MAX
;
release_num
++
)
{
for
(
uint16_t
release_num
=
0
;
release_num
<
NUMBER_OF_UE_MAX
;
release_num
++
)
{
...
@@ -1330,9 +1330,9 @@ schedule_ue_spec_fairRR(module_id_t module_idP,
...
@@ -1330,9 +1330,9 @@ schedule_ue_spec_fairRR(module_id_t module_idP,
if
(
release_total
>=
rrc_release_info
.
num_UEs
)
if
(
release_total
>=
rrc_release_info
.
num_UEs
)
break
;
break
;
}
}
pthread_mutex_unlock
(
&
rrc_release_freelist
);
}
}
pthread_mutex_unlock
(
&
rrc_release_freelist
);
RA_t
*
ra
=
&
eNB
->
common_channels
[
CC_id
].
ra
[
0
];
RA_t
*
ra
=
&
eNB
->
common_channels
[
CC_id
].
ra
[
0
];
for
(
uint8_t
ra_ii
=
0
;
ra_ii
<
NB_RA_PROC_MAX
;
ra_ii
++
)
{
for
(
uint8_t
ra_ii
=
0
;
ra_ii
<
NB_RA_PROC_MAX
;
ra_ii
++
)
{
...
...
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
View file @
017151ce
...
@@ -2319,9 +2319,8 @@ rrc_mac_remove_ue(module_id_t mod_idP,
...
@@ -2319,9 +2319,8 @@ rrc_mac_remove_ue(module_id_t mod_idP,
rntiP
);
rntiP
);
}
}
if
(
rrc_release_info
.
num_UEs
>
0
){
pthread_mutex_lock
(
&
rrc_release_freelist
);
pthread_mutex_lock
(
&
rrc_release_freelist
);
if
(
rrc_release_info
.
num_UEs
>
0
)
{
uint16_t
release_total
=
0
;
uint16_t
release_total
=
0
;
for
(
uint16_t
release_num
=
0
;
release_num
<
NUMBER_OF_UE_MAX
;
release_num
++
)
{
for
(
uint16_t
release_num
=
0
;
release_num
<
NUMBER_OF_UE_MAX
;
release_num
++
)
{
...
@@ -2341,6 +2340,7 @@ rrc_mac_remove_ue(module_id_t mod_idP,
...
@@ -2341,6 +2340,7 @@ rrc_mac_remove_ue(module_id_t mod_idP,
break
;
break
;
}
}
}
}
pthread_mutex_unlock
(
&
rrc_release_freelist
);
}
}
pthread_mutex_unlock
(
&
rrc_release_freelist
);
pthread_mutex_unlock
(
&
rrc_release_freelist
);
...
...
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