aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-04-17 12:50:16 +0200
committerHarald Welte <laforge@osmocom.org>2022-04-17 12:57:24 +0200
commit973ce5c5079f195f66cab4c2e05a23b0c7999adf (patch)
tree1d886f7e6c92813c31b24b860104cb4162a7539e /src
parent1ed219a1913d2a8a7b9b7f811c07b0eab4171c26 (diff)
Make use of libosmcoore cpu_sched_vty
osmo-e1d automatically uses SCHED_RR already, but for consistency it actually makes sense to add this, so people can configure the scheduler priority and/or the cpu affinity this way. The existing call to SCHED_RR is left in place for backwards compatibility. The new VTY commands can just override that, if needed. Change-Id: I1b8021e6dc864af6e301fced427e24c8bb21ca2f
Diffstat (limited to 'src')
-rw-r--r--src/osmo-e1d.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo-e1d.c b/src/osmo-e1d.c
index 1e18f88..ee7c0fb 100644
--- a/src/osmo-e1d.c
+++ b/src/osmo-e1d.c
@@ -41,6 +41,7 @@
#include <osmocom/vty/logging.h>
#include <osmocom/vty/stats.h>
#include <osmocom/vty/misc.h>
+#include <osmocom/vty/cpu_sched_vty.h>
#include <osmocom/e1d/proto_srv.h>
#include <osmocom/e1d/proto.h>
@@ -186,6 +187,7 @@ int main(int argc, char *argv[])
osmo_stats_vty_add_cmds();
osmo_talloc_vty_add_cmds();
osmo_fsm_vty_add_cmds();
+ osmo_cpu_sched_vty_init(e1d);
handle_options(argc, argv);