diff options
author | Deepak Goyal <dgoyal@nvidia.com> | 2017-07-01 22:49:29 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-06 08:44:32 -0400 |
commit | 75d7d6826dea130d5eb5ac86f1ca54bd9b05fbe1 (patch) | |
tree | 3a309b2d70caca4f73b78c73ad380d07c5d11ac2 /drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |
parent | 4166fc2f87ca4254b5e0c1433c810a83676d029a (diff) |
gpu: nvgpu: pmu: check before initializing perfmon
We should check if perfmon is enabled before sending
perfmon init command. This is needed for debug purposes.
Change-Id: Ia95a590a76074c469b5d87a5820cd5b2e50d13be
Signed-off-by: Deepak Goyal <dgoyal@nvidia.com>
Reviewed-on: https://git-master/r/1510036
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index 04ac2505..81402ad0 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |||
@@ -93,6 +93,9 @@ struct gk20a_platform { | |||
93 | /* Adaptative ELPG: true = enable flase = disable */ | 93 | /* Adaptative ELPG: true = enable flase = disable */ |
94 | bool enable_aelpg; | 94 | bool enable_aelpg; |
95 | 95 | ||
96 | /* PMU Perfmon: true = enable false = disable */ | ||
97 | bool enable_perfmon; | ||
98 | |||
96 | /* Memory System Clock Gating: true = enable flase = disable*/ | 99 | /* Memory System Clock Gating: true = enable flase = disable*/ |
97 | bool enable_mscg; | 100 | bool enable_mscg; |
98 | 101 | ||