diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-06-13 05:51:56 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-15 14:18:51 -0400 |
commit | 77e2cbab237637f71367df25384164b8c936a31a (patch) | |
tree | 64ccc10c4c6aa3eddbcac1d697d50b860247bf57 /drivers/gpu/nvgpu/tegra/linux | |
parent | 7d16f7e52c0f8ce8604e992a617a3f98545fcf07 (diff) |
gpu: nvgpu: reorganize PMU perfmon
-Moved perfmon code from pmu_gk20a.c to
"drivers/gpu/nvgpu/common/pmu/pmu_perfmon.c" file
-Moved below related methods
perfmon init,
start/stop sampling,
load counter read/write/reset,
perfmon event handler
- prepend with nvgpu_ for perfmon global methods
by replacing gk20a_
JURA NVGPU-56
JURA NVGPU-98
Change-Id: Idbcdf63ebd76da170e609cc401b320a42110cd7b
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/1501418
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/tegra/linux')
-rw-r--r-- | drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c index 3d5ea698..c4216ffc 100644 --- a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c | |||
@@ -299,7 +299,7 @@ static void gk20a_tegra_prescale(struct device *dev) | |||
299 | struct gk20a *g = get_gk20a(dev); | 299 | struct gk20a *g = get_gk20a(dev); |
300 | u32 avg = 0; | 300 | u32 avg = 0; |
301 | 301 | ||
302 | gk20a_pmu_load_norm(g, &avg); | 302 | nvgpu_pmu_load_norm(g, &avg); |
303 | tegra_edp_notify_gpu_load(avg, clk_get_rate(g->clk.tegra_clk)); | 303 | tegra_edp_notify_gpu_load(avg, clk_get_rate(g->clk.tegra_clk)); |
304 | } | 304 | } |
305 | 305 | ||
diff --git a/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c index 235473d3..5980c592 100644 --- a/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c | |||
@@ -280,7 +280,7 @@ static void gp10b_tegra_prescale(struct device *dev) | |||
280 | 280 | ||
281 | gk20a_dbg_fn(""); | 281 | gk20a_dbg_fn(""); |
282 | 282 | ||
283 | gk20a_pmu_load_norm(g, &avg); | 283 | nvgpu_pmu_load_norm(g, &avg); |
284 | 284 | ||
285 | gk20a_dbg_fn("done"); | 285 | gk20a_dbg_fn("done"); |
286 | } | 286 | } |