mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
msm: camera: ope: Fix for 32-bit kernel
Use div_u64 to do 64-bit division. CRs-Fixed: 3099898 Change-Id: I405461ea02d0ec668cb7be764543a9a16bd1c3e6 Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com> Signed-off-by: Nirmal Abraham <quic_c_nabrah@quicinc.com>
This commit is contained in:
parent
89103da2f8
commit
deb0914ed4
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2022, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/uaccess.h>
|
||||
|
|
@ -19,6 +19,7 @@
|
|||
#include <media/cam_defs.h>
|
||||
#include <media/cam_ope.h>
|
||||
#include <media/cam_cpas.h>
|
||||
#include <linux/math64.h>
|
||||
|
||||
#include "cam_sync_api.h"
|
||||
#include "cam_packet_util.h"
|
||||
|
|
@ -625,7 +626,7 @@ static bool cam_ope_check_req_delay(struct cam_ope_ctx *ctx_data,
|
|||
|
||||
if (ts_ns - req_time <
|
||||
((ctx_data->req_timer_timeout -
|
||||
ctx_data->req_timer_timeout / 10) * 1000000)) {
|
||||
div_u64(ctx_data->req_timer_timeout, 10)) * 1000000)) {
|
||||
CAM_INFO(CAM_OPE, "ctx: %d, ts_ns : %llu",
|
||||
ctx_data->ctx_id, ts_ns);
|
||||
cam_ope_req_timer_reset(ctx_data);
|
||||
|
|
|
|||
Loading…
Reference in a new issue