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

Commit 2d6666fa 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: call walt_sched_energy_populated_callback when needed"

parents cc53a8e3 880dc79f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -150,6 +150,7 @@ static int sched_energy_probe(struct platform_device *pdev)
	int cpu;
	unsigned long *max_frequencies = NULL;
	int ret;
	bool is_sge_valid = false;

	if (!sched_is_energy_aware())
		return 0;
@@ -248,6 +249,7 @@ static int sched_energy_probe(struct platform_device *pdev)
					sge_l0->cap_states[i].power);
			}

			is_sge_valid = true;
			dev_info(&pdev->dev,
				"cpu=%d eff=%d [freq=%ld cap=%ld power_d0=%ld] -> [freq=%ld cap=%ld power_d0=%ld]\n",
				cpu, efficiency,
@@ -271,6 +273,7 @@ static int sched_energy_probe(struct platform_device *pdev)

	kfree(max_frequencies);

	if (is_sge_valid)
		walt_sched_energy_populated_callback();
	dev_info(&pdev->dev, "Sched-energy-costs capacity updated\n");
	return 0;