aboutsummaryrefslogtreecommitdiffstats
path: root/src/gsm_timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gsm_timer.cpp')
-rw-r--r--src/gsm_timer.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gsm_timer.cpp b/src/gsm_timer.cpp
index 95513b47..d3c59cbc 100644
--- a/src/gsm_timer.cpp
+++ b/src/gsm_timer.cpp
@@ -33,9 +33,21 @@ static int *nearest_p;
#include <limits.h>
#include <gsm_timer.h>
#include <pcu_l1_if.h>
+#include <bts.h>
+
static struct rb_root timer_root = RB_ROOT;
+/*
+ * TODO: make this depend on the BTS. This means that
+ * all time functions schedule based on the BTS they
+ * are scheduled on.
+ */
+static int get_current_fn()
+{
+ return BTS::main_bts()->current_frame_number();
+}
+
static void __add_gsm_timer(struct osmo_gsm_timer_list *timer)
{
struct rb_node **new_node = &(timer_root.rb_node);