Skip to content

Commit fd78ba3

Browse files
carlo-galcodebot
authored andcommitted
sched: group private fnc in intra slice sched
Signed-off-by: Carlo Galiotto <[email protected]>
1 parent ad74312 commit fd78ba3

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

lib/scheduler/ue_scheduling/intra_slice_scheduler.cpp

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ void intra_slice_scheduler::ul_sched(ul_ran_slice_candidate slice, scheduler_pol
201201

202202
if (slice.get_slot_tx() != pusch_slot) {
203203
pusch_slot = slice.get_slot_tx();
204-
update_min_srs_symbol();
205204
update_used_ul_vrbs(slice);
206205
}
207206

@@ -879,6 +878,13 @@ void intra_slice_scheduler::update_used_dl_vrbs(const dl_ran_slice_candidate& sl
879878

880879
void intra_slice_scheduler::update_used_ul_vrbs(const ul_ran_slice_candidate& slice)
881880
{
881+
// Update the min SRS symbol before checking the used VRBs.
882+
// NOTE: Reset to max symbol index before looking for the min.
883+
min_srs_symbol = NOF_OFDM_SYM_PER_SLOT_NORMAL_CP;
884+
for (const auto& srs : cell_alloc[pusch_slot - pdcch_slot].result.ul.srss) {
885+
min_srs_symbol = std::min(static_cast<unsigned>(srs.symbols.start()), min_srs_symbol);
886+
}
887+
882888
// The mapping from CRBs to VRBs is different for UEs configured with a common SearchSpace that uses DCI 1_0.
883889
// [Implementation defined] We assume all the UEs of this cell are configured the same way in that regard.
884890
const slice_ue_repository& slice_ues = slice.get_slice_ues();
@@ -916,12 +922,3 @@ void intra_slice_scheduler::update_used_ul_vrbs(const ul_ran_slice_candidate& sl
916922
.ul_res_grid.used_prbs(init_ul_bwp.generic_params.scs, ul_crb_lims, symbols_to_check)
917923
.convert_to<vrb_bitmap>();
918924
}
919-
920-
void intra_slice_scheduler::update_min_srs_symbol()
921-
{
922-
// Reset to max symbol index before looking for the min.
923-
min_srs_symbol = NOF_OFDM_SYM_PER_SLOT_NORMAL_CP;
924-
for (const auto& srs : cell_alloc[pusch_slot - pdcch_slot].result.ul.srss) {
925-
min_srs_symbol = std::min(static_cast<unsigned>(srs.symbols.start()), min_srs_symbol);
926-
}
927-
}

lib/scheduler/ue_scheduling/intra_slice_scheduler.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ class intra_slice_scheduler
108108
void update_used_dl_vrbs(const dl_ran_slice_candidate& slice);
109109
void update_used_ul_vrbs(const ul_ran_slice_candidate& slice);
110110

111-
void update_min_srs_symbol();
112-
113111
const scheduler_ue_expert_config& expert_cfg;
114112
const cell_resource_allocator& cell_alloc;
115113
cell_metrics_handler& cell_metrics;

0 commit comments

Comments
 (0)