mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-23 18:22:13 +08:00
remove rtshield
old-commit-hash: f58969cb6076d2b4a37840682a14bf05894ba17b
This commit is contained in:
@@ -71,7 +71,6 @@ selfdrive/__init__.py
|
||||
selfdrive/sentry.py
|
||||
selfdrive/tombstoned.py
|
||||
selfdrive/updated.py
|
||||
selfdrive/rtshield.py
|
||||
selfdrive/statsd.py
|
||||
|
||||
system/logmessaged.py
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import time
|
||||
from typing import NoReturn
|
||||
|
||||
from openpilot.common.realtime import set_core_affinity, set_realtime_priority
|
||||
|
||||
# RT shield - ensure CPU 3 always remains available for RT processes
|
||||
# runs as SCHED_FIFO with minimum priority to ensure kthreads don't
|
||||
# get scheduled onto CPU 3, but it's always preemptible by realtime
|
||||
# openpilot processes
|
||||
|
||||
def main() -> NoReturn:
|
||||
set_core_affinity([int(os.getenv("CORE", "3")), ])
|
||||
set_realtime_priority(1)
|
||||
|
||||
while True:
|
||||
time.sleep(0.000001)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user