Skip to content
Snippets Groups Projects
Commit 9ba9485e authored by Carter Cooper's avatar Carter Cooper Committed by Iliyan Malchev
Browse files

msm: kgsl: Check constraint state coming out of slumber


Only set the default constraint when we come out of slumber if there
is no current constraint set. The current behavior will always override
the constraint that was set when coming out of slumber.

Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
Change-Id: I58a5e2338bbee64e885edf697e83869820be2c22
parent c89e7307
No related branches found
No related tags found
No related merge requests found
......@@ -133,6 +133,7 @@ static void tz_wake(struct kgsl_device *device, struct kgsl_pwrscale *pwrscale)
struct tz_priv *priv = pwrscale->priv;
if (device->state != KGSL_STATE_NAP &&
priv->governor == TZ_GOVERNOR_ONDEMAND)
if (device->pwrctrl.constraint.type == KGSL_CONSTRAINT_NONE)
kgsl_pwrctrl_pwrlevel_change(device,
device->pwrctrl.default_pwrlevel);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment