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
canghaiwuhen
OpenXG-RAN
Commits
da09d63a
Commit
da09d63a
authored
Jun 23, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default pre-processor: efficiently build UE list
parent
6fcc4f59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
19 deletions
+8
-19
openair2/LAYER2/MAC/pre_processor.c
openair2/LAYER2/MAC/pre_processor.c
+8
-19
No files found.
openair2/LAYER2/MAC/pre_processor.c
View file @
da09d63a
...
...
@@ -647,12 +647,10 @@ dlsch_scheduler_pre_processor(module_id_t Mod_id,
store_dlsch_buffer
(
Mod_id
,
CC_id
,
frameP
,
subframeP
);
UE_list_t
UE_to_sched
;
UE_to_sched
.
head
=
-
1
;
for
(
int
i
=
0
;
i
<
MAX_MOBILES_PER_ENB
;
++
i
)
UE_to_sched
.
next
[
i
]
=
-
1
;
int
*
cur
=
&
UE_to_sched
.
head
;
int
first
=
1
;
int
last_UE_id
=
-
1
;
for
(
int
UE_id
=
UE_info
->
list
.
head
;
UE_id
>=
0
;
UE_id
=
UE_info
->
list
.
next
[
UE_id
])
{
UE_sched_ctrl_t
*
ue_sched_ctrl
=
&
UE_info
->
UE_sched_ctrl
[
UE_id
];
const
UE_TEMPLATE
*
ue_template
=
&
UE_info
->
UE_template
[
CC_id
][
UE_id
];
...
...
@@ -685,15 +683,10 @@ dlsch_scheduler_pre_processor(module_id_t Mod_id,
}
/* define UEs to schedule */
if
(
first
)
{
first
=
0
;
UE_to_sched
.
head
=
UE_id
;
}
else
{
UE_to_sched
.
next
[
last_UE_id
]
=
UE_id
;
}
UE_to_sched
.
next
[
UE_id
]
=
-
1
;
last_UE_id
=
UE_id
;
*
cur
=
UE_id
;
cur
=
&
UE_to_sched
.
next
[
UE_id
];
}
*
cur
=
-
1
;
if
(
UE_to_sched
.
head
<
0
)
return
;
...
...
@@ -1097,11 +1090,10 @@ void ulsch_scheduler_pre_processor(module_id_t Mod_id,
COMMON_channels_t
*
cc
=
&
mac
->
common_channels
[
CC_id
];
UE_list_t
UE_to_sched
;
UE_to_sched
.
head
=
-
1
;
for
(
int
i
=
0
;
i
<
MAX_MOBILES_PER_ENB
;
++
i
)
UE_to_sched
.
next
[
i
]
=
-
1
;
int
*
cur
=
&
UE_to_sched
.
head
;
int
last_UE_id
=
-
1
;
for
(
int
UE_id
=
UE_info
->
list
.
head
;
UE_id
>=
0
;
UE_id
=
UE_info
->
list
.
next
[
UE_id
])
{
UE_TEMPLATE
*
UE_template
=
&
UE_info
->
UE_template
[
CC_id
][
UE_id
];
UE_sched_ctrl_t
*
ue_sched_ctrl
=
&
UE_info
->
UE_sched_ctrl
[
UE_id
];
...
...
@@ -1124,13 +1116,10 @@ void ulsch_scheduler_pre_processor(module_id_t Mod_id,
continue
;
/* define UEs to schedule */
if
(
UE_to_sched
.
head
<
0
)
UE_to_sched
.
head
=
UE_id
;
else
UE_to_sched
.
next
[
last_UE_id
]
=
UE_id
;
UE_to_sched
.
next
[
UE_id
]
=
-
1
;
last_UE_id
=
UE_id
;
*
cur
=
UE_id
;
cur
=
&
UE_to_sched
.
next
[
UE_id
];
}
*
cur
=
-
1
;
if
(
UE_to_sched
.
head
<
0
)
return
;
...
...
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