Prioritize nvargus-daemon and other threads
A large part of our critical path work in libargus was running at
SCHED_OTHER. Move this to SCHED_FIFO so it will run. This reduces
outliers to down in the 8ms from 16+.
Change-Id: Ib86a07f70f3715328b86d83ee91aada4ab441cd7
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/frc971/orin/build_rootfs.py b/frc971/orin/build_rootfs.py
index e0559a1..9ae0a72 100755
--- a/frc971/orin/build_rootfs.py
+++ b/frc971/orin/build_rootfs.py
@@ -1253,6 +1253,8 @@
copyfile("root:root", "644", "etc/systemd/network/80-canc.network")
copyfile("root:root", "644", "etc/udev/rules.d/nvidia.rules")
copyfile("root:root", "644", "etc/udev/rules.d/can.rules")
+ copyfile("root:root", "644",
+ "lib/systemd/system/nvargus-daemon.service")
target(["/root/bin/change_hostname.sh", "orin-971-1"])
target(["systemctl", "enable", "systemd-networkd"])