aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-11-02 11:14:19 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-11-02 11:16:21 +0100
commitdd4b8a250723cb528deb7d2a2c242bc38641ecee (patch)
tree853f4a3653c519ec4beed6ab07b9a32f73c9ce27 /contrib
parentd1335d878b34eb67d75a6f7ff22e305a573c827f (diff)
systemd: Use realtime scheduling for the BTS to read msg queues
We need to read the Layer1 message queues fast enough, switch on realtime processing for that. Move the firmware init after the process execution to have some time for the firmware to reload before the application sysmobts is restarted.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/sysmobts.service6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/sysmobts.service b/contrib/sysmobts.service
index 88081416..42672700 100644
--- a/contrib/sysmobts.service
+++ b/contrib/sysmobts.service
@@ -4,8 +4,12 @@ Description=sysmocom sysmoBTS
[Service]
Type=simple
ExecStartPre=/bin/sh -c 'echo 0 > /sys/class/leds/activity_led/brightness'
-ExecStartPre=/bin/sh -c 'cat /lib/firmware/sysmobts-v?.out > /dev/dspdl_dm644x_0'
ExecStart=/usr/bin/sysmobts -s -c /etc/osmocom/osmo-bts.cfg
ExecStartPost=/bin/sh -c 'echo 0 > /sys/class/leds/activity_led/brightness'
+ExecStartPost=/bin/sh -c 'cat /lib/firmware/sysmobts-v?.out > /dev/dspdl_dm644x_0'
Restart=always
RestartSec=2
+
+# The msg queues must be read fast enough
+CPUSchedulingPolicy=rr
+CPUSchedulingPriority=1