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
+5
View File
@@ -92,6 +92,11 @@ int main(int argc, char **argv) {
int err;
set_realtime_priority(51);
#ifdef QCOM2
// CPU usage is much lower when pinned to a single big core
set_core_affinity(4);
#endif
signal(SIGINT, (sighandler_t)set_do_exit);
signal(SIGTERM, (sighandler_t)set_do_exit);