diff --git a/selfdrive/locationd/locationd.cc b/selfdrive/locationd/locationd.cc index 00996b3198..dcdae4e84b 100755 --- a/selfdrive/locationd/locationd.cc +++ b/selfdrive/locationd/locationd.cc @@ -1,3 +1,6 @@ +#include +#include + #include "locationd.h" using namespace EKFS; @@ -376,6 +379,8 @@ int Localizer::locationd_thread() { } int main() { + setpriority(PRIO_PROCESS, 0, -20); + Localizer localizer; return localizer.locationd_thread(); } diff --git a/selfdrive/logcatd/logcatd_android.cc b/selfdrive/logcatd/logcatd_android.cc index 2aeccab3ec..99c701156d 100644 --- a/selfdrive/logcatd/logcatd_android.cc +++ b/selfdrive/logcatd/logcatd_android.cc @@ -1,3 +1,6 @@ +#include +#include + #include #include #include @@ -6,8 +9,9 @@ #include "messaging.h" int main() { - ExitHandler do_exit; + setpriority(PRIO_PROCESS, 0, -15); + ExitHandler do_exit; PubMaster pm({"androidLog"}); log_time last_log_time = {}; diff --git a/selfdrive/loggerd/loggerd.cc b/selfdrive/loggerd/loggerd.cc index 710267ab79..d247c43421 100644 --- a/selfdrive/loggerd/loggerd.cc +++ b/selfdrive/loggerd/loggerd.cc @@ -326,8 +326,7 @@ void clear_locks() { } // namespace int main(int argc, char** argv) { - - setpriority(PRIO_PROCESS, 0, -12); + setpriority(PRIO_PROCESS, 0, -20); clear_locks(); diff --git a/selfdrive/proclogd/proclogd.cc b/selfdrive/proclogd/proclogd.cc index 48f3a3f05a..a9b4ac55bc 100644 --- a/selfdrive/proclogd/proclogd.cc +++ b/selfdrive/proclogd/proclogd.cc @@ -1,5 +1,7 @@ #include #include +#include +#include #include #include @@ -30,6 +32,8 @@ struct ProcCache { } int main() { + setpriority(PRIO_PROCESS, 0, -15); + PubMaster publisher({"procLog"}); double jiffy = sysconf(_SC_CLK_TCK); diff --git a/selfdrive/sensord/sensors_qcom.cc b/selfdrive/sensord/sensors_qcom.cc index 6e6ad8a3a3..42a5cc6147 100644 --- a/selfdrive/sensord/sensors_qcom.cc +++ b/selfdrive/sensord/sensors_qcom.cc @@ -220,7 +220,7 @@ void sensor_loop() { }// Namespace end int main(int argc, char *argv[]) { - setpriority(PRIO_PROCESS, 0, -13); + setpriority(PRIO_PROCESS, 0, -18); signal(SIGPIPE, (sighandler_t)sigpipe_handler); sensor_loop(); diff --git a/selfdrive/sensord/sensors_qcom2.cc b/selfdrive/sensord/sensors_qcom2.cc index 7d90cbc6b1..3e5b013c9d 100644 --- a/selfdrive/sensord/sensors_qcom2.cc +++ b/selfdrive/sensord/sensors_qcom2.cc @@ -93,6 +93,6 @@ int sensor_loop() { } int main(int argc, char *argv[]) { - setpriority(PRIO_PROCESS, 0, -13); + setpriority(PRIO_PROCESS, 0, -18); return sensor_loop(); }