aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/Transceiver.cpp
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-08-21 13:00:38 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-08-21 13:00:41 +0200
commit67aa91b2c0e7a06873e0c42f3e7088c6ce56d178 (patch)
tree015ebf46967242ba5698aabb1d06bba791be326e /Transceiver52M/Transceiver.cpp
parent3eed8ebb0d91c18c8bf81db4df25d77cc7b1b544 (diff)
Drop old setPriority related code
This code is not needed anymore since we are setting SCHED_RR scheduler with a real time priority in main thread during startup, so all threads will inherit same rt priority, which should be enough to keep the process working reliably even on high system loads (from non rt processes). osmo-trx was tested to be reliable during test with stress-ng as explained in related ticket below. Related: OS#2344 Change-Id: I3a88946dd71e9aeeaac9d19d396e2236c302b608
Diffstat (limited to 'Transceiver52M/Transceiver.cpp')
-rw-r--r--Transceiver52M/Transceiver.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index 4da1876..2d5c04e 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -1126,8 +1126,6 @@ void *RxUpperLoopAdapter(TrxChanThParams *params)
snprintf(thread_name, 16, "RxUpper%zu", num);
set_selfthread_name(thread_name);
- trx->setPriority(0.42);
-
while (1) {
trx->driveReceiveFIFO(num);
pthread_testcancel();
@@ -1139,8 +1137,6 @@ void *RxLowerLoopAdapter(Transceiver *transceiver)
{
set_selfthread_name("RxLower");
- transceiver->setPriority(0.45);
-
while (1) {
transceiver->driveReceiveRadio();
pthread_testcancel();
@@ -1152,8 +1148,6 @@ void *TxLowerLoopAdapter(Transceiver *transceiver)
{
set_selfthread_name("TxLower");
- transceiver->setPriority(0.44);
-
while (1) {
transceiver->driveTxFIFO();
pthread_testcancel();
@@ -1190,8 +1184,6 @@ void *TxUpperLoopAdapter(TrxChanThParams *params)
snprintf(thread_name, 16, "TxUpper%zu", num);
set_selfthread_name(thread_name);
- trx->setPriority(0.40);
-
while (1) {
trx->driveTxPriorityQueue(num);
pthread_testcancel();