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

Commit 7bdf45db 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: Bump the frequency all the way to turbo for long IBs"

parents ac64b66b 912f97d6
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -159,11 +159,14 @@ static void tz_idle(struct kgsl_device *device, struct kgsl_pwrscale *pwrscale)
		(priv->bin.total_time < FLOOR))
		return;

	/* If there is an extended block of busy processing,
	 * increase frequency.  Otherwise run the normal algorithm.
	/*
	 * If there is an extended block of busy processing, set
	 * frequency to turbo.  Otherwise run the normal algorithm.
	 */
	if (priv->bin.busy_time > CEILING) {
		val = -1;
		val = 0;
		kgsl_pwrctrl_pwrlevel_change(device,
				KGSL_PWRLEVEL_TURBO);
	} else if (priv->idle_dcvs) {
		idle = priv->bin.total_time - priv->bin.busy_time;
		idle = (idle > 0) ? idle : 0;