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

Commit 8b67fffe authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cpufreq: Return directly in __cpufreq_get if policy is NULL"

parents d1766f0f 35a2dab6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1463,6 +1463,9 @@ static unsigned int __cpufreq_get(unsigned int cpu)

	ret_freq = cpufreq_driver->get(cpu);

	if (!policy)
		return ret_freq;

	if (ret_freq && policy->cur &&
		!(cpufreq_driver->flags & CPUFREQ_CONST_LOOPS)) {
		/* verify no discrepancy between actual and