aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/bsc/bts.h
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2022-05-29 23:57:59 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2022-06-02 14:17:35 +0200
commit4c89001ccbd4dfb505454ae2b5f31ac09af7848a (patch)
tree9d3e95b360192d3b91175911a39e6b0a142f77de /include/osmocom/bsc/bts.h
parent05154b41e6fe8cee5ea38137c02e10a5a4b7eb96 (diff)
code cleanup for all_allocated timers, no functional change
Reduce some code dup in all_allocated accounting and cosmetically prepare for upcoming performance fix. Have a struct all_allocated, allow easy re-use of function all_allocated_update(). Rename function to all_allocated_update_bsc(). Upcoming patch will also add all_allocated_update_bts(). Related: SYS#5976 Change-Id: Id7a82c65d56a87818fc35bbeedf67e2af2f89f11
Diffstat (limited to 'include/osmocom/bsc/bts.h')
-rw-r--r--include/osmocom/bsc/bts.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/osmocom/bsc/bts.h b/include/osmocom/bsc/bts.h
index 5a67791f5..fc3ebce12 100644
--- a/include/osmocom/bsc/bts.h
+++ b/include/osmocom/bsc/bts.h
@@ -637,10 +637,7 @@ struct gsm_bts {
/* At what point in the channel allocation sequence to dispatch the Immediate Assignment (Abis optimization) */
enum imm_ass_time imm_ass_time;
- struct osmo_time_cc all_allocated_sdcch;
- struct osmo_time_cc all_allocated_static_sdcch;
- struct osmo_time_cc all_allocated_tch;
- struct osmo_time_cc all_allocated_static_tch;
+ struct all_allocated all_allocated;
};
#define GSM_BTS_SI2Q(bts, i) (struct gsm48_system_information_type_2quater *)((bts)->si_buf[SYSINFO_TYPE_2quater][i])