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

Commit 90c34e58 authored by Sravan Goud's avatar Sravan Goud Committed by nshrivas
Browse files

qcacld-3.0: Avoid 64 bit division for 32bit targets compatibility

In function wlan_hdd_rx_rpm_mark_last_busy math division is performed
on unsingned 64bit integer. This leads to driver load failure on 32
bit machine targets. So avoid the math division for 64bit integer.

Change-Id: I967a0a64b421b47113821e1af5379cdd0125a34d
CRs-Fixed: 2576125
parent 94ac0e3f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3218,7 +3218,7 @@ bool wlan_hdd_rx_rpm_mark_last_busy(struct hdd_context *hdd_ctx,
				      current_us + 1);
	rpm_delay_ms = ucfg_pmo_get_runtime_pm_delay(hdd_ctx->psoc);

	if ((duration_us / 1000) < rpm_delay_ms)
	if (duration_us < (rpm_delay_ms * 1000))
		return true;
	else
		return false;