Commit 81d03721 authored by Robert Schmidt's avatar Robert Schmidt

MAC sched slicing: sort only relevant slices

parent 1240c62a
......@@ -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);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment