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

Commit 339df4b9 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Check for an OPP table without accidentally creating one"

parents a5d7a7b3 cb46fc6e
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -784,14 +784,11 @@ MODULE_DEVICE_TABLE(of, adreno_match_table);
/* Dynamically build the OPP table for the GPU device */
static void adreno_build_opp_table(struct device *dev, struct kgsl_pwrctrl *pwr)
{
	struct opp_table *table;
	int i;

	table = dev_pm_opp_get_opp_table(dev);
	if (table) {
		dev_pm_opp_put_opp_table(table);
	/* Skip if the table has already been populated */
	if (dev_pm_opp_get_opp_count(dev) > 0)
		return;
	}

	/* Add all the supported frequencies into the tree */
	for (i = 0; i < pwr->num_pwrlevels; i++)