summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak Goyal <dgoyal@nvidia.com>2017-02-13 05:06:33 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-02-24 00:33:34 -0500
commit45303a7de515c2214c8df2e19d130b89395eae4f (patch)
tree87091c79ea49f924fa780030b1d1e332534a15cb
parentd6e40fc07a5d6386d759111f957c7a5e0605500e (diff)
gpu: nvgpu: pmu: make gp106_pmu_reset() public.
secure PMU reset i.e. gp106_pmu_reset() is changed to a non-static function, so that it can be re-used outside gp106 scope. Change-Id: I7d4c4ec6ca1bd315bf8c681723fb350277103c3b Signed-off-by: Deepak Goyal <dgoyal@nvidia.com> Reviewed-on: http://git-master/r/1303758 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/gp106/pmu_gp106.c2
-rw-r--r--drivers/gpu/nvgpu/gp106/pmu_gp106.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp106/pmu_gp106.c b/drivers/gpu/nvgpu/gp106/pmu_gp106.c
index 5a9d5ba6..bb9c63ca 100644
--- a/drivers/gpu/nvgpu/gp106/pmu_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/pmu_gp106.c
@@ -121,7 +121,7 @@ static int pmu_enable(struct pmu_gk20a *pmu, bool enable)
121 return 0; 121 return 0;
122} 122}
123 123
124static int gp106_pmu_reset(struct gk20a *g) 124int gp106_pmu_reset(struct gk20a *g)
125{ 125{
126 struct pmu_gk20a *pmu = &g->pmu; 126 struct pmu_gk20a *pmu = &g->pmu;
127 int err = 0; 127 int err = 0;
diff --git a/drivers/gpu/nvgpu/gp106/pmu_gp106.h b/drivers/gpu/nvgpu/gp106/pmu_gp106.h
index a42ff620..36c574bf 100644
--- a/drivers/gpu/nvgpu/gp106/pmu_gp106.h
+++ b/drivers/gpu/nvgpu/gp106/pmu_gp106.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -18,5 +18,6 @@
18 gk20a_dbg(gpu_dbg_pmu, fmt, ##arg) 18 gk20a_dbg(gpu_dbg_pmu, fmt, ##arg)
19 19
20void gp106_init_pmu_ops(struct gpu_ops *gops); 20void gp106_init_pmu_ops(struct gpu_ops *gops);
21int gp106_pmu_reset(struct gk20a *g);
21 22
22#endif /*__PMU_GP106_H_*/ 23#endif /*__PMU_GP106_H_*/