  import cereal.messaging as messaging
  from common.params import Params
  from common.realtime import DT_MDL
  from common.transformations.camera import eon_f_frame_size, eon_d_frame_size, tici_f_frame_size
  from selfdrive.hardware import HARDWARE, TICI
  from selfdrive.controls.lib.alertmanager import set_offroad_alert
  from selfdrive.manager.process_config import managed_processes
  
  LM_THRESH = 120  # defined in selfdrive/camerad/imgproc/utils.h
  
 
</s> remove     HARDWARE.set_power_save(False)
 </s> add  </s> remove     HARDWARE.set_power_save(True)

 </s> add  </s> remove   assert(ret == 0);
 </s> add   assert(ret == 0 || Params().getBool("IsOffroad")); // failure ok while offroad due to offlining cores
from selfdrive.hardware import TICI
  import cereal.messaging as messaging
  from common.params import Params
  from common.realtime import DT_MDL
  from common.transformations.camera import eon_f_frame_size, eon_d_frame_size, tici_f_frame_size
from selfdrive.hardware import TICI
  from selfdrive.controls.lib.alertmanager import set_offroad_alert
  from selfdrive.manager.process_config import managed_processes
  
  LM_THRESH = 120  # defined in selfdrive/camerad/imgproc/utils.h
  
keep keep keep keep replace keep keep keep keep keep
 camerad: allow core affinity setting to fail while offroad (#22664)

Co-authored-by: Comma Device <device@comma.ai> 
selfdrive/camerad/snapshot/snapshot.py