mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
145eb3321f
commit
f403800dce
@@ -605,7 +605,7 @@ static int nvgpu_pci_pm_init(struct device *dev)
|
||||
#ifdef CONFIG_PM
|
||||
struct gk20a *g = get_gk20a(dev);
|
||||
|
||||
if (!g->can_railgate) {
|
||||
if (!nvgpu_is_enabled(g, NVGPU_CAN_RAILGATE)) {
|
||||
pm_runtime_disable(dev);
|
||||
} else {
|
||||
if (g->railgate_delay)
|
||||
|
||||
Reference in New Issue
Block a user