    int ret;
    ret = set_realtime_priority(53);
    assert(ret == 0);
    ret = set_core_affinity({Hardware::EON() ? 2 : 6});
    assert(ret == 0);
  
    cl_device_id device_id = cl_get_device_id(CL_DEVICE_TYPE_DEFAULT);
  
     // TODO: do this for QCOM2 too
  #if defined(QCOM)
 
</s> remove     HARDWARE.set_power_save(False)
 </s> add  </s> remove     HARDWARE.set_power_save(True)

 </s> add  </s> remove from selfdrive.hardware import HARDWARE, TICI
 </s> add from selfdrive.hardware import TICI
  assert(ret == 0 || Params().getBool("IsOffroad")); // failure ok while offroad due to offlining cores
    int ret;
    ret = set_realtime_priority(53);
    assert(ret == 0);
    ret = set_core_affinity({Hardware::EON() ? 2 : 6});
  assert(ret == 0 || Params().getBool("IsOffroad")); // failure ok while offroad due to offlining cores
  
    cl_device_id device_id = cl_get_device_id(CL_DEVICE_TYPE_DEFAULT);
  
     // TODO: do this for QCOM2 too
  #if defined(QCOM)
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/main.cc