summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Lin <harlin@nvidia.com>2017-04-11 01:49:29 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-11 11:45:02 -0400
commit324032126f0713d474ba7967f6ad0a220e189180 (patch)
tree13eba8bab7bd8fd5f2255815d4242b9709c45c4c
parent19b76d4fd79a5d3cbb50c247247e03072c784893 (diff)
gpu: nvgpu: fix compile error in non-debugfs case
struct gk20a* g is undefined before used by trace_gk10a_pm_unrailgate() if CONFIG_DEBUG_FS is not defined. bug 200289063 Change-Id: Ifd613c8bae3ee05023b72347fbc64c8a9883dcbf Signed-off-by: Harry Lin <harlin@nvidia.com> Reviewed-on: http://git-master/r/1460205 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 05e3c3f4..d7446484 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -701,9 +701,9 @@ static int gk20a_pm_unrailgate(struct device *dev)
701{ 701{
702 struct gk20a_platform *platform = dev_get_drvdata(dev); 702 struct gk20a_platform *platform = dev_get_drvdata(dev);
703 int ret = 0; 703 int ret = 0;
704#ifdef CONFIG_DEBUG_FS
705 struct gk20a *g = get_gk20a(dev); 704 struct gk20a *g = get_gk20a(dev);
706 705
706#ifdef CONFIG_DEBUG_FS
707 g->pstats.last_rail_ungate_start = jiffies; 707 g->pstats.last_rail_ungate_start = jiffies;
708 if (g->pstats.railgating_cycle_count >= 1) 708 if (g->pstats.railgating_cycle_count >= 1)
709 g->pstats.total_rail_gate_time_ms = 709 g->pstats.total_rail_gate_time_ms =