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

Commit 3940a57c authored by Kyle Piefer's avatar Kyle Piefer
Browse files

Revert "msm: kgsl: Move OPP disabling after probe"



With the fix to locking, this change is no longer needed.
This reverts commit bbf46794.

Change-Id: Id9a7f16a84db072deab04d4b5fdef8c5a3dc87a3
Signed-off-by: default avatarKyle Piefer <kpiefer@codeaurora.org>
parent d732694b
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -2297,6 +2297,8 @@ int kgsl_pwrctrl_init(struct kgsl_device *device)
			pwr->pwrlevels[i].gpu_freq = freq;
	}

	kgsl_pwrctrl_disable_unused_opp(device);

	kgsl_clk_set_rate(device, pwr->num_pwrlevels - 1);

	if (pwr->grp_clks[6] != NULL)
@@ -2587,7 +2589,6 @@ static int kgsl_pwrctrl_enable(struct kgsl_device *device)
{
	struct kgsl_pwrctrl *pwr = &device->pwrctrl;
	int level, status;
	static bool disable_opp_done;

	if (pwr->wakeup_maxpwrlevel) {
		level = pwr->max_pwrlevel;
@@ -2598,11 +2599,6 @@ static int kgsl_pwrctrl_enable(struct kgsl_device *device)
		level = pwr->default_pwrlevel;
	}

	if (!disable_opp_done) {
		kgsl_pwrctrl_disable_unused_opp(device);
		disable_opp_done = true;
	}

	kgsl_pwrctrl_pwrlevel_change(device, level);

	if (kgsl_gmu_gpmu_isenabled(device)) {