Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a171a95a authored by Gaurav Jindal's avatar Gaurav Jindal
Browse files

msm: camera: common: Change parameters to find time difference



Change the earlier and later parameters to calculate the time
differene.

Change-Id: I744838b18be80ec5ac7f7211709854bbfceb99a1
CRs-Fixed: 2672724
Signed-off-by: default avatarGaurav Jindal <gjindal@codeaurora.org>
parent 40afc2d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1587,7 +1587,7 @@ static int cam_fd_mgr_hw_dump(
	return rc;
hw_dump:
	cur_time = ktime_get();
	diff = ktime_us_delta(frame_req->submit_timestamp, cur_time);
	diff = ktime_us_delta(cur_time, frame_req->submit_timestamp);
	cur_ts = ktime_to_timespec64(cur_time);
	req_ts = ktime_to_timespec64(frame_req->submit_timestamp);
	if (diff < CAM_FD_RESPONSE_TIME_THRESHOLD) {
+1 −1
Original line number Diff line number Diff line
@@ -5225,7 +5225,7 @@ static int cam_icp_mgr_hw_dump(void *hw_priv, void *hw_dump_args)
	return 0;
hw_dump:
	cur_time = ktime_get();
	diff = ktime_us_delta(frm_process->submit_timestamp[i], cur_time);
	diff = ktime_us_delta(cur_time, frm_process->submit_timestamp[i]);
	cur_ts = ktime_to_timespec64(cur_time);
	req_ts = ktime_to_timespec64(frm_process->submit_timestamp[i]);

+2 −3
Original line number Diff line number Diff line
@@ -2748,9 +2748,8 @@ static int __cam_isp_ctx_dump_in_top_state(
	ctx_isp = (struct cam_isp_context *) ctx->ctx_priv;
	req_isp = (struct cam_isp_ctx_req *) req->req_priv;
	cur_time = ktime_get();
	diff = ktime_us_delta(
		req_isp->event_timestamp[CAM_ISP_CTX_EVENT_APPLY],
		cur_time);
	diff = ktime_us_delta(cur_time,
		req_isp->event_timestamp[CAM_ISP_CTX_EVENT_APPLY]);
	if (diff < CAM_ISP_CTX_RESPONSE_TIME_THRESHOLD) {
		CAM_INFO(CAM_ISP, "req %lld found no error",
			req->request_id);
+1 −1
Original line number Diff line number Diff line
@@ -1543,7 +1543,7 @@ static int cam_jpeg_mgr_hw_dump(void *hw_mgr_priv, void *dump_hw_args)

hw_dump:
	cur_time = ktime_get();
	diff = ktime_us_delta(p_cfg_req->submit_timestamp, cur_time);
	diff = ktime_us_delta(cur_time, p_cfg_req->submit_timestamp);
	cur_ts = ktime_to_timespec64(cur_time);
	req_ts = ktime_to_timespec64(p_cfg_req->submit_timestamp);

+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ static int cam_lrme_hw_dump(
	}

	cur_time = ktime_get();
	diff = ktime_us_delta(req->submit_timestamp, cur_time);
	diff = ktime_us_delta(cur_time, req->submit_timestamp);
	cur_ts = ktime_to_timespec64(cur_time);
	req_ts = ktime_to_timespec64(req->submit_timestamp);