Change in osmo-pcu[master]: find_multi_slots: Avoid calling mslot_class_get_tx() on each iteration

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sat Feb 20 17:11:14 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/22994 )

Change subject: find_multi_slots: Avoid calling mslot_class_get_tx() on each iteration
......................................................................

find_multi_slots: Avoid calling mslot_class_get_tx() on each iteration

Change-Id: I397495c158bce1c2715991371368b0d84cf69261
---
M src/gprs_rlcmac_ts_alloc.cpp
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/src/gprs_rlcmac_ts_alloc.cpp b/src/gprs_rlcmac_ts_alloc.cpp
index 6b34418..469ede3 100644
--- a/src/gprs_rlcmac_ts_alloc.cpp
+++ b/src/gprs_rlcmac_ts_alloc.cpp
@@ -556,7 +556,7 @@
 	/* Check for each UL (TX) slot */
 
 	/* Iterate through possible numbers of TX slots */
-	for (num_tx = 1; num_tx <= mslot_class_get_tx(mslot_class); num_tx += 1) {
+	for (num_tx = 1; num_tx <= Tx; num_tx += 1) {
 		uint16_t tx_valid_win = (1 << num_tx) - 1;
 		uint8_t rx_mask[MASK_TR + 1];
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/22994
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I397495c158bce1c2715991371368b0d84cf69261
Gerrit-Change-Number: 22994
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210220/e058e6e6/attachment.htm>


More information about the gerrit-log mailing list