Support setting rt-prio and cpu-affinity mask through VTY

Depends: libosmocore.git Change-Id If76a4bd2cc7b3c7adf5d84790a944d78be70e10a
Depends: osmo-gsm-masnuals.git Change-Id Icd75769ef630c3fa985fc5e2154d5521689cdd3c
Related: SYS#4986
Change-Id: Ie68883666657fc8faa76e2422335c0ceb98c5a88
diff --git a/TODO-RELEASE b/TODO-RELEASE
index b822f8a..f5d70c2 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -7,9 +7,5 @@
 # If any interfaces have been added since the last public release: c:r:a + 1.
 # If any interfaces have been removed or changed since the last public release: c:r:0.
 #library	what		description / commit summary line
-manual				needs common chapter cs7-config.adoc from osmo-gsm-manuals > 0.3.0
-libosmocore	struct gsm0808_diagnostics	Depends on libosmocore > 1.3.0
-libosmocore	gsm0808_diagnostics_octet_location_str()	Depends on libosmocore > 1.3.0
-libosmocore	gsm0808_diagnostics_bit_location_str()	Depends on libosmocore > 1.3.0
-libosmocore	osmo_mobile_identity	Depends on libosmocore > 1.3.0
+manual				needs common chapter cs7-config.adoc, vty_cpu_sched.adoc from osmo-gsm-manuals > 0.3.0
 osmo-bsc	Mobile Identity Coding	OsmoBSC is stricter in rejecting invalid coding of Mobile Identity IEs
diff --git a/configure.ac b/configure.ac
index 4a58079..ed9b2cb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,10 +49,10 @@
 AM_CONDITIONAL(BUILD_IPA_UTILS, test "x$osmo_ac_ipa_utils" = "xyes")
 AC_SUBST(osmo_ac_ipa_utils)
 
-PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 1.3.0)
-PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 1.3.0)
-PKG_CHECK_MODULES(LIBOSMOCTRL, libosmoctrl >= 1.3.0)
-PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 1.3.0)
+PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 1.4.0)
+PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 1.4.0)
+PKG_CHECK_MODULES(LIBOSMOCTRL, libosmoctrl >= 1.4.0)
+PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 1.4.0)
 PKG_CHECK_MODULES(LIBOSMOABIS, libosmoabis >= 0.6.0)
 PKG_CHECK_MODULES(LIBOSMONETIF, libosmo-netif >= 0.6.0)
 PKG_CHECK_MODULES(LIBOSMOSIGTRAN, libosmo-sigtran >= 0.10.0)
diff --git a/debian/control b/debian/control
index d1adc4b..d2ecea0 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,7 @@
                python3-minimal,
                libcdk5-dev,
                libtalloc-dev,
-               libosmocore-dev (>= 1.3.0),
+               libosmocore-dev (>= 1.4.0),
                libosmo-sccp-dev (>= 0.10.0),
                libosmo-sigtran-dev (>= 0.10.0),
                libosmo-abis-dev (>= 0.6.0),
diff --git a/doc/manuals/osmobsc-usermanual.adoc b/doc/manuals/osmobsc-usermanual.adoc
index cb939cc..a34d3d4 100644
--- a/doc/manuals/osmobsc-usermanual.adoc
+++ b/doc/manuals/osmobsc-usermanual.adoc
@@ -42,6 +42,8 @@
 
 include::{srcdir}/chapters/osmux_bsc.adoc[]
 
+include::./common/chapters/vty_cpu_sched.adoc[]
+
 include::./common/chapters/port_numbers.adoc[]
 
 include::./common/chapters/bibliography.adoc[]
diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c
index 84b44f7..95eab4a 100644
--- a/src/osmo-bsc/osmo_bsc_main.c
+++ b/src/osmo-bsc/osmo_bsc_main.c
@@ -53,6 +53,7 @@
 #include <osmocom/vty/ports.h>
 #include <osmocom/vty/logging.h>
 #include <osmocom/vty/command.h>
+#include <osmocom/vty/cpu_sched_vty.h>
 
 #include <osmocom/mgcp_client/mgcp_client_endpoint_fsm.h>
 
@@ -843,6 +844,7 @@
 	vty_init(&vty_info);
 	bsc_vty_init(bsc_gsmnet);
 	ctrl_vty_init(tall_bsc_ctx);
+	osmo_cpu_sched_vty_init(tall_bsc_ctx);
 	logging_vty_add_deprecated_subsys(tall_bsc_ctx, "cc");
 	logging_vty_add_deprecated_subsys(tall_bsc_ctx, "mgcp");
 	logging_vty_add_deprecated_subsys(tall_bsc_ctx, "nat");