tici: fix set_realtime_priority (#2124)

* cleanup and pin modeld to core 5

* Unused import
old-commit-hash: 5c058140edb5678cfc31e5103e57cdb5d1c11305
This commit is contained in:
Willem Melching
2020-09-02 17:52:41 +02:00
committed by GitHub
parent 16ef2f6a1b
commit e5f5cdaccf
3 changed files with 15 additions and 16 deletions
+1 -3
View File
@@ -50,7 +50,6 @@ void set_thread_name(const char* name) {
int set_realtime_priority(int level) {
#ifdef __linux__
long tid = syscall(SYS_gettid);
// should match python using chrt
@@ -64,8 +63,7 @@ int set_realtime_priority(int level) {
}
int set_core_affinity(int core) {
#ifdef QCOM
#ifdef __linux__
long tid = syscall(SYS_gettid);
cpu_set_t rt_cpu;