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

Commit 5673c120 authored by Vikram Sharma's avatar Vikram Sharma Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: isp: removed mutext lock from irq context



get sof timestamp called from tasklet which intern
should not take mutex as it may sleep. This change
removes the mutext lock from irq context.

CRs-Fixed: 2794250
Change-Id: If73acde1a4b931e4bfc3650638f7f977e18cb3ea
Signed-off-by: default avatarVikram Sharma <vikramsa@codeaurora.org>
parent 18ef37aa
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -4412,8 +4412,6 @@ static int cam_ife_csid_process_cmd(void *hw_priv,
	csid_hw_info = (struct cam_hw_info  *)hw_priv;
	csid_hw = (struct cam_ife_csid_hw   *)csid_hw_info->core_info;

	mutex_lock(&csid_hw->hw_info->hw_mutex);

	switch (cmd_type) {
	case CAM_IFE_CSID_CMD_GET_TIME_STAMP:
		rc = cam_ife_csid_get_time_stamp(csid_hw, cmd_args);
@@ -4457,8 +4455,6 @@ static int cam_ife_csid_process_cmd(void *hw_priv,
		break;
	}

	mutex_unlock(&csid_hw->hw_info->hw_mutex);

	return rc;

}