You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
429 B
21 lines
429 B
3 years ago
|
#include "selfdrive/loggerd/loggerd.h"
|
||
|
|
||
|
#include <sys/resource.h>
|
||
|
|
||
|
int main(int argc, char** argv) {
|
||
|
if (Hardware::EON()) {
|
||
|
setpriority(PRIO_PROCESS, 0, -20);
|
||
|
} else if (Hardware::TICI()) {
|
||
|
int ret;
|
||
|
ret = set_core_affinity({0, 1, 2, 3});
|
||
|
assert(ret == 0);
|
||
|
// TODO: why does this impact camerad timings?
|
||
|
//ret = set_realtime_priority(1);
|
||
|
//assert(ret == 0);
|
||
|
}
|
||
|
|
||
|
loggerd_thread();
|
||
|
|
||
|
return 0;
|
||
|
}
|