summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/common/linux/module.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c
index b95bac0b..2e288ce2 100644
--- a/drivers/gpu/nvgpu/common/linux/module.c
+++ b/drivers/gpu/nvgpu/common/linux/module.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GK20A Graphics 2 * GK20A Graphics
3 * 3 *
4 * Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -736,6 +736,11 @@ static int gk20a_pm_railgate(struct device *dev)
736 struct gk20a_platform *platform = dev_get_drvdata(dev); 736 struct gk20a_platform *platform = dev_get_drvdata(dev);
737 int ret = 0; 737 int ret = 0;
738 struct gk20a *g = get_gk20a(dev); 738 struct gk20a *g = get_gk20a(dev);
739
740 /* if platform is already railgated, then just return */
741 if (platform->is_railgated && platform->is_railgated(dev))
742 return ret;
743
739#ifdef CONFIG_DEBUG_FS 744#ifdef CONFIG_DEBUG_FS
740 g->pstats.last_rail_gate_start = jiffies; 745 g->pstats.last_rail_gate_start = jiffies;
741 746