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

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

Merge "sched/energy: remove rcu lock around dev_pm_opp_find_freq_floor"

parents cbb31a7c 1f904a09
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -202,7 +202,6 @@ static int sched_energy_probe(struct platform_device *pdev)

		max_frequencies[cpu] = ULONG_MAX;

		rcu_read_lock();
		opp = dev_pm_opp_find_freq_floor(cpu_dev,
						 &max_frequencies[cpu]);
		if (IS_ERR_OR_NULL(opp)) {
@@ -210,9 +209,8 @@ static int sched_energy_probe(struct platform_device *pdev)
				ret = -EPROBE_DEFER;
			else
				ret = PTR_ERR(opp);
			goto exit_rcu_unlock;
			goto exit;
		}
		rcu_read_unlock();

		/* Convert HZ to KHZ */
		max_frequencies[cpu] /= 1000;
@@ -293,9 +291,6 @@ static int sched_energy_probe(struct platform_device *pdev)
	dev_info(&pdev->dev, "Sched-energy-costs capacity updated\n");
	return 0;

exit_rcu_unlock:
	rcu_read_unlock();

exit:
	if (ret != -EPROBE_DEFER)
		dev_err(&pdev->dev, "error=%d\n", ret);