From 9d17840f83fa0c460098fc5b142d2f8b767fa501 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 13 Nov 2018 19:31:50 +0100 Subject: bts-trx: setup timer once at creation time The setup is only needed once, so no need to set it every time we want to schedule it. Furthermore, it will ease new code introduced in follow-up patches, which will schedule this timer under some circumstances without need to send a message at the same time (because re-try of a cmd after a delay is wanted). This commit adds an alloc function and an init function to keep different parts of the code decoupled and avoid exposing more implementation details between them (like exposing the trx_if timer). Change-Id: I3b6461d0130d25284e673c5efce0b3832c48bbb5 --- src/osmo-bts-trx/l1_if.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/osmo-bts-trx/l1_if.h') diff --git a/src/osmo-bts-trx/l1_if.h b/src/osmo-bts-trx/l1_if.h index 77c5936c..165f9d81 100644 --- a/src/osmo-bts-trx/l1_if.h +++ b/src/osmo-bts-trx/l1_if.h @@ -64,6 +64,7 @@ struct trx_l1h { struct l1sched_trx l1s; }; +struct trx_l1h *trx_l1h_alloc(void *tall_ctx, struct phy_instance *pinst); int check_transceiver_availability(struct gsm_bts *bts, int avail); int l1if_provision_transceiver_trx(struct trx_l1h *l1h); int l1if_provision_transceiver(struct gsm_bts *bts); -- cgit v1.2.3