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

Commit 65d09834 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Correct the bandwidth vote translation"

parents 7ea0c1f4 e1ab04b9
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -1399,14 +1399,10 @@ int kgsl_pwrctrl_init(struct kgsl_device *device)
		if (vector->dst == MSM_BUS_SLAVE_EBI_CH0 &&
				vector->ib != 0) {
			if (i < KGSL_MAX_BUSLEVELS)
				/*
				 * Want to convert bytes to Mbytes,
				 * but msm_bus_of.c uses a strange macro
				 *  #define KBTOB(a) (a * 1000ULL)
				 * thats why 1024*1000, not 1024*1024
				 */
				/* Convert bytes to Mbytes. */
				ib_votes[i] =
					DIV_ROUND_UP_ULL(vector->ib, 1024000);
					DIV_ROUND_UP_ULL(vector->ib, 1048576)
					- 1;

			for (k = 0; k < n; k++)
				if (vector->ib == pwr->bus_ib[k]) {