nvhost_scale3d_suspend() assumed that if it was called and devfreq was
in place, also the governor matched with the current one. However, this
is a wrong assumption as the function is defined in pdata.
Change-Id: I
660180bc317c42582d01d72ea97545252e5fa1e0
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/235913
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
return;
mutex_lock(&df->lock);
+
podgov = df->data;
- if (!(podgov && podgov->enable)) {
+ if (!(df->governor == &nvhost_podgov &&
+ podgov && podgov->enable)) {
mutex_unlock(&df->lock);
return;
}