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

Commit 108ab01f 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: Remove unnecssary call to dev_pm_opp_get_freq()" into msm-4.14

parents 230ba827 b2bf9054
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -893,12 +893,6 @@ static int opp_notify(struct notifier_block *nb,
		return PTR_ERR(opp);
		return PTR_ERR(opp);
	}
	}


	max_freq = dev_pm_opp_get_freq(opp);
	if (!max_freq) {
		rcu_read_unlock();
		return result;
	}

	opp = dev_pm_opp_find_freq_ceil(dev, &min_freq);
	opp = dev_pm_opp_find_freq_ceil(dev, &min_freq);
	if (IS_ERR(opp))
	if (IS_ERR(opp))
		min_freq = pwr->pwrlevels[pwr->min_pwrlevel].gpu_freq;
		min_freq = pwr->pwrlevels[pwr->min_pwrlevel].gpu_freq;