diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-01-05 07:24:04 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-01-05 14:35:37 +0700 |
commit | bd6e320c086b0b272665b82ab794a03755706055 (patch) | |
tree | 513b305c1ffacc227d3d9ebdfe1b1a1801958a09 /src/host/trxcon/sched_trx.h | |
parent | 0c201abbffa6404b134374c59e6f9ed73e6757c0 (diff) |
trxcon/scheduler: use linuxlist API for lchan management
As there is no any order relation between logical channels, it's
better to use the linuxlist API instead of talloc array.
Change-Id: I5a78582c77ed1ab33817d240e065dc4cd4708199
Diffstat (limited to 'src/host/trxcon/sched_trx.h')
-rw-r--r-- | src/host/trxcon/sched_trx.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/host/trxcon/sched_trx.h b/src/host/trxcon/sched_trx.h index b93011cb..7ee1d472 100644 --- a/src/host/trxcon/sched_trx.h +++ b/src/host/trxcon/sched_trx.h @@ -146,6 +146,8 @@ struct trx_lchan_state { enum trx_lchan_type type; /*! \brief Channel status */ uint8_t active; + /*! \brief Link to a list of channels */ + struct llist_head list; /*! \brief Burst type: GMSK or 8PSK */ enum trx_burst_type burst_type; @@ -221,7 +223,7 @@ struct trx_ts { /*! \brief Pointer to multiframe layout */ const struct trx_multiframe *mf_layout; /*! \brief Channel states for logical channels */ - struct trx_lchan_state *lchans; + struct llist_head lchans; /*! \brief Queue primitives for TX */ struct llist_head tx_prims; }; |