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

Commit 13b6d04a authored by Maria Yu's avatar Maria Yu Committed by Steve Cohen
Browse files

msm: sde: fix for 32-bit build '__udivdi3' error



Undefined reference to '__udivdi3' error happened
for 32bit build. Change from DIV_ROUND_UP to DIV_ROUND_UP_SECTOR_T
which can take care of different BITS_PER_LONG.

Change-Id: Iedbfa1b8d4ae68fe2b03ebe8464b974c891e7bec
Signed-off-by: default avatarMaria Yu <aiquny@codeaurora.org>
parent 15ac23e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1709,7 +1709,7 @@ static void sde_hw_rotator_setup_wbengine(struct sde_hw_rotator_context *ctx,

		/* use prefill bandwidth instead if specified */
		if (cfg->prefill_bw)
			bw = DIV_ROUND_UP(cfg->prefill_bw,
			bw = DIV_ROUND_UP_SECTOR_T(cfg->prefill_bw,
					TRAFFIC_SHAPE_VSYNC_CLK);

		if (bw > 0xFF)