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

Commit 4e9f21ee authored by Trishansh Bhardwaj's avatar Trishansh Bhardwaj Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: reqmgr: Remove division on uint64_t



Arm arch does not support dividing 64 bit integer, replacing it with
do_div call.

CRs-Fixed: 2543730
Change-Id: I86f8c706d20978b4c7bfd78c499dacb482c4d37a
Signed-off-by: default avatarTrishansh Bhardwaj <tbhardwa@codeaurora.org>
parent 09e2bdc6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1198,10 +1198,11 @@ static int __cam_req_mgr_check_sync_req_is_ready(
	 * difference of two SOF timestamp less than
	 * (sync_frame_duration / 5).
	 */
	do_div(sync_frame_duration, 5);
	if ((link->sof_timestamp > sync_link->sof_timestamp) &&
		(sync_link->sof_timestamp > 0) &&
		(link->sof_timestamp - sync_link->sof_timestamp <
		sync_frame_duration / 5) &&
		sync_frame_duration) &&
		(sync_rd_slot->sync_mode == CAM_REQ_MGR_SYNC_MODE_SYNC)) {

		/*