laforge has uploaded this change for review.
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
---
M src/osmo-e1d.c
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/11/27811/1
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 @@
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);
To view, visit change 27811. To unsubscribe, or for help writing mail filters, visit settings.