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

Commit 2a69efa9 authored by Maria Yu's avatar Maria Yu
Browse files

msm: kgsl: Fix for '__udivdi3' build error



Undefined reference to '__udivdi3' error happened
for 32bit build. Need to use do_div for 64bit divid
32bit.

Change-Id: I7646116bf0210fa7de10ac34ead3cbadd9b10fc4
Signed-off-by: default avatarMaria Yu <aiquny@codeaurora.org>
parent 0d1fd669
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2970,7 +2970,8 @@ static void adreno_power_stats(struct kgsl_device *device,

		if (adreno_is_a6xx(adreno_dev)) {
			/* clock sourced from XO */
			stats->busy_time = gpu_busy * 10 / 192;
			stats->busy_time = gpu_busy * 10;
			do_div(stats->busy_time, 192);
		} else {
			/* clock sourced from GFX3D */
			stats->busy_time = adreno_ticks_to_us(gpu_busy,