Browse Source

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: Trishansh Bhardwaj <[email protected]>
Trishansh Bhardwaj 5 years ago
parent
commit
4e9f21ee27
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/cam_req_mgr/cam_req_mgr_core.c

+ 2 - 1
drivers/cam_req_mgr/cam_req_mgr_core.c

@@ -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)) {
 
 		/*