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
81d03721
Commit
81d03721
authored
Apr 19, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MAC sched slicing: sort only relevant slices
parent
1240c62a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
+3
-2
No files found.
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
View file @
81d03721
...
...
@@ -2322,10 +2322,11 @@ static int slice_priority_compare(const void *_a, const void *_b, void *_c)
void
slice_priority_sort
(
module_id_t
Mod_id
,
int
slice_list
[
MAX_NUM_SLICES
])
{
int
i
;
for
(
i
=
0
;
i
<
MAX_NUM_SLICES
;
++
i
)
{
for
(
i
=
0
;
i
<
RC
.
mac
[
Mod_id
]
->
slice_info
.
n_dl
;
++
i
)
{
slice_list
[
i
]
=
i
;
}
qsort_r
(
slice_list
,
MAX_NUM_SLICES
,
sizeof
(
int
),
slice_priority_compare
,
&
Mod_id
);
qsort_r
(
slice_list
,
RC
.
mac
[
Mod_id
]
->
slice_info
.
n_dl
,
sizeof
(
int
),
slice_priority_compare
,
&
Mod_id
);
}
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