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

Commit 6b7a5c9b authored by Lijuan Gao's avatar Lijuan Gao
Browse files

qcom: cdsp: Compilation error fix for 32-bit kernel



This fixes below compilation error for 32bit kernel
build. Compiler reference __aeabi_uldivmod if there
is a 64bit divide or module. Change is to use div_u64
to fix this.

cdsprm.c: undefined reference to `__aeabi_uldivmod'.

Change-Id: Ie71def2c395490cdc739a1183e33e858381c8b3c
Signed-off-by: default avatarLijuan Gao <lijuang@codeaurora.org>
parent da17976d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -543,8 +543,8 @@ static void process_delayed_rm_request(struct work_struct *work)
			(curr_timestamp < timestamp)) {
		if ((timestamp - curr_timestamp) <
		(gcdsprm.qos_max_ms * SYS_CLK_TICKS_PER_MS))
			time_ms = (timestamp - curr_timestamp) /
						SYS_CLK_TICKS_PER_MS;
			time_ms = div_u64((timestamp - curr_timestamp),
						SYS_CLK_TICKS_PER_MS);
		else
			break;
		gcdsprm.dt_state = CDSP_DELAY_THREAD_BEFORE_SLEEP;