Change in osmo-bts[master]: scheduler: reorder enum trx_chan_type, add TRX_CHAN_IS_DEDIC()

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
Mon Jun 21 16:24:23 UTC 2021


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

Change subject: scheduler: reorder enum trx_chan_type, add TRX_CHAN_IS_DEDIC()
......................................................................

scheduler: reorder enum trx_chan_type, add TRX_CHAN_IS_DEDIC()

With the new ordering, all TRXC_* values starting from TRXC_TCHF
belong to dedicated channels.  This is useful for the interference
reporting logic, where we're not interested in broadcast channels.

Change-Id: I7148f4d0bd1abbfe309bc5477e32a56d884533ea
Related: SYS#5313, OS#1569
---
M include/osmo-bts/scheduler.h
1 file changed, 7 insertions(+), 3 deletions(-)

Approvals:
  Jenkins Builder: Verified
  dexter: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved



diff --git a/include/osmo-bts/scheduler.h b/include/osmo-bts/scheduler.h
index 86bfdf9..40b7330 100644
--- a/include/osmo-bts/scheduler.h
+++ b/include/osmo-bts/scheduler.h
@@ -18,6 +18,9 @@
 #define TRX_8PSK_NB_TSC(br) \
 	_sched_train_seq_8psk_nb[(br)->tsc]
 
+#define TRX_CHAN_IS_DEDIC(chan) \
+	(chan >= TRXC_TCHF)
+
 /* These types define the different channels on a multiframe.
  * Each channel has queues and can be activated individually.
  */
@@ -28,6 +31,10 @@
 	TRXC_BCCH,
 	TRXC_RACH,
 	TRXC_CCCH,
+	TRXC_CBCH,
+	TRXC_PDTCH,
+	TRXC_PTCCH,
+/* Dedicated channels start here */
 	TRXC_TCHF,
 	TRXC_TCHH_0,
 	TRXC_TCHH_1,
@@ -58,9 +65,6 @@
 	TRXC_SACCH8_5,
 	TRXC_SACCH8_6,
 	TRXC_SACCH8_7,
-	TRXC_PDTCH,
-	TRXC_PTCCH,
-	TRXC_CBCH,
 	_TRX_CHAN_MAX
 };
 

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I7148f4d0bd1abbfe309bc5477e32a56d884533ea
Gerrit-Change-Number: 24645
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210621/857c712e/attachment.htm>


More information about the gerrit-log mailing list