msm: kgsl: Fix maximum allowed power level for A660

Update the logic that checks maximum allowed power level to
accommodate new frequency corners.

Change-Id: I85c9db7e39c75b14ee77464ca6fcdf5855653b25
Signed-off-by: Mohammed Mirza Mandayappurath Manzoor <mmandaya@codeaurora.org>
This commit is contained in:
Mohammed Mirza Mandayappurath Manzoor 2020-08-12 12:53:53 -07:00
commit eb3e2f6ce3

View file

@ -480,7 +480,7 @@ static int tz_start(struct devfreq *devfreq)
priv->nb.notifier_call = tz_notify;
out = 1;
if (devfreq->profile->max_state < MSM_ADRENO_MAX_PWRLEVELS) {
if (devfreq->profile->max_state < ARRAY_SIZE(tz_pwrlevels)) {
for (i = 0; i < devfreq->profile->max_state; i++)
tz_pwrlevels[out++] = devfreq->profile->freq_table[i];
tz_pwrlevels[0] = i;