gpu: nvgpu: define P-state as a platform variable

move P-state enabling from chip level to platform level.

Bug 200559157

Change-Id: Ie71dc801583678dc3a19f2a8438e477e46053591
Signed-off-by: Preetham Chandru Ramchandra <pchandru@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2223300
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Preetham Chandru Ramchandra
2019-10-25 16:10:21 +05:30
committed by Alex Waterman
parent a9bb95f859
commit a12c627574
6 changed files with 13 additions and 6 deletions

View File

@@ -95,6 +95,7 @@ static struct gk20a_platform nvgpu_pci_device[] = {
.can_elcg = false,
.disable_aspm = true,
.pstate = true,
/* power management callbacks */
.is_railgated = nvgpu_pci_tegra_is_railgated,
@@ -136,6 +137,7 @@ static struct gk20a_platform nvgpu_pci_device[] = {
.can_elcg = false,
.disable_aspm = true,
.pstate = true,
/* power management callbacks */
.is_railgated = nvgpu_pci_tegra_is_railgated,