aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-05-19 16:33:06 +0200
committerlaforge <laforge@osmocom.org>2021-05-23 10:30:44 +0000
commitb1998511432c806d9a671bd089a36fc461f216b0 (patch)
treeebbf49110fe6ba5f00993f540793e04e680377f1 /src/osmo-bsc
parent22707603253b4772eb498632a4f3eb2e792a9424 (diff)
bsc: Use osmo_clock_gettime everywhere
Diffstat (limited to 'src/osmo-bsc')
-rw-r--r--src/osmo-bsc/bts.c2
-rw-r--r--src/osmo-bsc/bts_ipaccess_nanobts.c2
-rw-r--r--src/osmo-bsc/e1_config.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/osmo-bsc/bts.c b/src/osmo-bsc/bts.c
index 66bd36007..857ddd2d1 100644
--- a/src/osmo-bsc/bts.c
+++ b/src/osmo-bsc/bts.c
@@ -570,7 +570,7 @@ unsigned long long bts_uptime(const struct gsm_bts *bts)
return 0;
}
- if (clock_gettime(CLOCK_MONOTONIC, &tp) != 0) {
+ if (osmo_clock_gettime(CLOCK_MONOTONIC, &tp) != 0) {
LOGP(DNM, LOGL_ERROR, "BTS %u uptime computation failure: %s\n", bts->nr, strerror(errno));
return 0;
}
diff --git a/src/osmo-bsc/bts_ipaccess_nanobts.c b/src/osmo-bsc/bts_ipaccess_nanobts.c
index 7fb7948ab..019c8b801 100644
--- a/src/osmo-bsc/bts_ipaccess_nanobts.c
+++ b/src/osmo-bsc/bts_ipaccess_nanobts.c
@@ -705,7 +705,7 @@ ipaccess_sign_link_up(void *unit_data, struct e1inp_line *line,
e1inp_sign_link_create(sign_ts,
E1INP_SIGN_OML, bts->c0,
bts->oml_tei, 0);
- rc = clock_gettime(CLOCK_MONOTONIC, &tp);
+ rc = osmo_clock_gettime(CLOCK_MONOTONIC, &tp);
bts->uptime = (rc < 0) ? 0 : tp.tv_sec; /* we don't need sub-second precision for uptime */
if (!(sign_link->trx->bts->ip_access.flags & OML_UP)) {
e1inp_event(sign_link->ts, S_L_INP_TEI_UP,
diff --git a/src/osmo-bsc/e1_config.c b/src/osmo-bsc/e1_config.c
index 9ccbbfd70..bdf7d1c53 100644
--- a/src/osmo-bsc/e1_config.c
+++ b/src/osmo-bsc/e1_config.c
@@ -196,7 +196,7 @@ int e1_reconfig_bts(struct gsm_bts *bts)
if (bts->oml_link)
e1inp_sign_link_destroy(bts->oml_link);
bts->oml_link = oml_link;
- rc = clock_gettime(CLOCK_MONOTONIC, &tp);
+ rc = osmo_clock_gettime(CLOCK_MONOTONIC, &tp);
bts->uptime = (rc < 0) ? 0 : tp.tv_sec; /* we don't need sub-second precision for uptime */
llist_for_each_entry(trx, &bts->trx_list, list)