diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2018-06-26 10:18:17 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-04 07:42:05 -0400 |
commit | f403800dce923c8bac982291aee213e1e3afdab0 (patch) | |
tree | 01e7b9af55778f1514e5b02e520abf1b7ccd8d39 /drivers/gpu/nvgpu/os/linux/pci.c | |
parent | 145eb3321fb8b5411c9e4975eada21515c19ebb0 (diff) |
gpu: nvgpu: move can_railgate to enabled.h
The g->can_railgate flag is a global constant-ish property like the rest
of the flags behind nvgpu_is_enabled() API, so move it there.
Bug 200327089
Change-Id: Id1f2f16ea1975a03fb56f10c2f3c8c705574e341
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1764266
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/pci.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/pci.c b/drivers/gpu/nvgpu/os/linux/pci.c index 1011b441..205986ec 100644 --- a/drivers/gpu/nvgpu/os/linux/pci.c +++ b/drivers/gpu/nvgpu/os/linux/pci.c | |||
@@ -605,7 +605,7 @@ static int nvgpu_pci_pm_init(struct device *dev) | |||
605 | #ifdef CONFIG_PM | 605 | #ifdef CONFIG_PM |
606 | struct gk20a *g = get_gk20a(dev); | 606 | struct gk20a *g = get_gk20a(dev); |
607 | 607 | ||
608 | if (!g->can_railgate) { | 608 | if (!nvgpu_is_enabled(g, NVGPU_CAN_RAILGATE)) { |
609 | pm_runtime_disable(dev); | 609 | pm_runtime_disable(dev); |
610 | } else { | 610 | } else { |
611 | if (g->railgate_delay) | 611 | if (g->railgate_delay) |