mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Merge "msm: kgsl: Check for an OPP table without accidentally creating one"
This commit is contained in:
commit
339df4b9e2
1 changed files with 2 additions and 5 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue