This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/6689
host/trxcon/trx_if.c: handle clock indications
Change-Id: I333c1c44578eb62c52d2d059b798dd5feae3e444
---
M src/host/trxcon/trx_if.c
M src/host/trxcon/trx_if.h
2 files changed, 10 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/89/6689/1
diff --git a/src/host/trxcon/trx_if.c b/src/host/trxcon/trx_if.c
index 8f93b0a..83db173 100644
--- a/src/host/trxcon/trx_if.c
+++ b/src/host/trxcon/trx_if.c
@@ -42,6 +42,7 @@
#include "trxcon.h"
#include "trx_if.h"
#include "logging.h"
+#include "scheduler.h"
extern void *tall_trx_ctx;
extern struct osmo_fsm_inst *trxcon_fsm;
@@ -146,6 +147,7 @@
static int trx_clck_read_cb(struct osmo_fd *ofd, unsigned int what)
{
+ struct trx_instance *trx = (struct trx_instance *) ofd->data;
char buf[1500];
uint32_t fn;
int len;
@@ -173,7 +175,9 @@
"correctly, correcting to fn=%u\n", fn);
}
- /* TODO: call the clck_ind callback */
+ /* Call the clck_ind callback */
+ sched_clck_handle(&trx->sched, fn);
+
return 0;
}
diff --git a/src/host/trxcon/trx_if.h b/src/host/trxcon/trx_if.h
index a81da37..e41d506 100644
--- a/src/host/trxcon/trx_if.h
+++ b/src/host/trxcon/trx_if.h
@@ -5,6 +5,8 @@
#include <osmocom/core/timer.h>
#include <osmocom/core/fsm.h>
+#include "scheduler.h"
+
enum trx_fsm_states {
TRX_STATE_OFFLINE = 0,
TRX_STATE_IDLE,
@@ -21,6 +23,9 @@
struct llist_head trx_ctrl_list;
struct osmo_fsm_inst *fsm;
uint32_t prev_state;
+
+ /* Scheduler stuff */
+ struct trx_sched sched;
};
struct trx_ctrl_msg {
--
To view, visit https://gerrit.osmocom.org/6689
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I333c1c44578eb62c52d2d059b798dd5feae3e444
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>