mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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:
parent
e12a8b83d2
commit
eb3e2f6ce3
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue