aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-05-10 11:44:02 +0200
committerHarald Welte <laforge@gnumonks.org>2018-05-24 06:08:44 +0000
commit19080d531f81e7939cbcbbbd601ff3962e5a330d (patch)
treedf8de042ff513691fa3defabd7bde8cca38e651a /src
parent5a0f85d00b749a75f3d101e7f860bffea6270084 (diff)
scheduler_trx: Add reminders to use libosmocore functions
Let' wait until the just-merged osmo_timerfd_* functions of Change-Id Ibeffba7c997252c003723bcd5d14122c4ded2fe7 have made it into the next tagged release, and then replace the implementation here. Change-Id: Ic0f0a7437b6acb535177e5ad6ac7a6d336654c66
Diffstat (limited to 'src')
-rw-r--r--src/osmo-bts-trx/scheduler_trx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c
index 4c4ae6c5..11c5c4e6 100644
--- a/src/osmo-bts-trx/scheduler_trx.c
+++ b/src/osmo-bts-trx/scheduler_trx.c
@@ -1427,6 +1427,7 @@ static inline void normalize_timespec(struct timespec *ts)
}
/*! disable the osmocom-wrapped timerfd */
+/* FIXME: Use libosmocore after release with Ibeffba7c997252c003723bcd5d14122c4ded2fe7 was made */
static int timer_ofd_disable(struct osmo_fd *ofd)
{
const struct itimerspec its_null = {
@@ -1441,6 +1442,7 @@ static int timer_ofd_disable(struct osmo_fd *ofd)
* \param[in] first Relative time at which the timer should first execute (NULL = \a interval)
* \param[in] interval Time interval at which subsequent timer shall fire
* \returns 0 on success; negative on error */
+/* FIXME: Use libosmocore after release with Ibeffba7c997252c003723bcd5d14122c4ded2fe7 was made */
static int timer_ofd_schedule(struct osmo_fd *ofd, const struct timespec *first,
const struct timespec *interval)
{
@@ -1469,6 +1471,7 @@ static int timer_ofd_schedule(struct osmo_fd *ofd, const struct timespec *first,
* We simply initialize the data structures here, but do not yet
* schedule the timer.
*/
+/* FIXME: Use libosmocore after release with Ibeffba7c997252c003723bcd5d14122c4ded2fe7 was made */
static int timer_ofd_setup(struct osmo_fd *ofd, int (*cb)(struct osmo_fd *, unsigned int), void *data)
{
ofd->cb = cb;