fix dmonitoringmodeld random high CPU usage (#2216)

* exp attempt1

* attempt2 less hacky
pull/2220/head
ZwX1616 5 years ago committed by GitHub
parent 9418b710a7
commit da147b2534
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/manager.py

@ -238,7 +238,6 @@ car_started_processes = [
'calibrationd',
'paramsd',
'camerad',
'modeld',
'proclogd',
'locationd',
'clocksd',
@ -270,6 +269,9 @@ if ANDROID:
'rtshield',
]
# starting dmonitoringmodeld when modeld is initializing can sometimes \
# result in a weird snpe state where dmon constantly uses more cpu than normal.
car_started_processes += ['modeld']
def register_managed_process(name, desc, car_started=False):
global managed_processes, car_started_processes, persistent_processes

Loading…
Cancel
Save