Merge "msm: camera: ope: Fix for 32-bit kernel" into camera-kernel.lnx.4.0

This commit is contained in:
Camera Software Integration 2022-01-11 03:35:41 -08:00 • committed by Gerrit - the friendly Code Review server
commit eac3f0b664

View file

@ -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);