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

Commit 230ad13c authored by Jordan Crouse's avatar Jordan Crouse Committed by Jeremy Gebben
Browse files

msm: kgsl: Remove pm_qos_latency from legacy pdata struct



Remove pm_qos_latency from the legacy pdata struct and read it
directly from the device tree in kgsl_pwrctrl_init().

Change-Id: Ic0dedbad9a53c1cb357e78cf5899c70a155066c5
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent e45bcebe
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1500,11 +1500,6 @@ static int adreno_of_get_pdata(struct platform_device *pdev)
	if (ret)
		goto err;

	/* get pm-qos-latency from target, set it to default if not found */
	if (of_property_read_u32(pdev->dev.of_node, "qcom,pm-qos-latency",
		&pdata->pm_qos_latency))
		pdata->pm_qos_latency = 501;

	if (of_property_read_u32(pdev->dev.of_node, "qcom,idle-timeout",
		&pdata->idle_timeout))
		pdata->idle_timeout = HZ/12;
+3 −1
Original line number Diff line number Diff line
@@ -1010,7 +1010,9 @@ int kgsl_pwrctrl_init(struct kgsl_device *device)
	pwr->interval_timeout = pdata->idle_timeout;
	pwr->strtstp_sleepwake = pdata->strtstp_sleepwake;

	pwr->pm_qos_latency = pdata->pm_qos_latency;
	if (kgsl_property_read_u32(device, "qcom,pm-qos-latency",
		&pwr->pm_qos_latency))
		pwr->pm_qos_latency = 501;

	pm_runtime_enable(device->parentdev);

+0 −1
Original line number Diff line number Diff line
@@ -101,7 +101,6 @@ struct kgsl_device_platform_data {
	struct coresight_device *csdev;
	struct coresight_platform_data *coresight_pdata;
	unsigned int chipid;
	unsigned int pm_qos_latency;
};

#ifdef CONFIG_MSM_KGSL_DRM