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

Commit b2bf9054 authored by Deepak Kumar's avatar Deepak Kumar Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Remove unnecssary call to dev_pm_opp_get_freq()



Calling dev_pm_opp_find_freq_floor() returns the matched frequency
in 'max_freq'. We don't need to call dev_pm_opp_get_freq() again
to get the frequency value.

Change-Id: I725653b60f28073865e9a4734d81ad1d64530735
Signed-off-by: default avatarDeepak Kumar <dkumar@codeaurora.org>
parent be49c613
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -893,12 +893,6 @@ static int opp_notify(struct notifier_block *nb,
		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);
	if (IS_ERR(opp))
		min_freq = pwr->pwrlevels[pwr->min_pwrlevel].gpu_freq;