summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-04-14 18:54:49 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-02 06:06:08 -0400
commita30924340f879db1f2857e066b919eeecf03c693 (patch)
treefe92f504d70854ab81819c7ab7d2a54c2d676836 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent4d1237f132163cb0a397a5407570377e77d70b1b (diff)
gpu: nvgpu: Add new flag support_pmu to gk20a
Add new flag support_pmu to struct gk20a at probe time, and access it from gk20a instead of support_gk20a_pmu() which depends on struct device *. JIRA NVGPU-16 Change-Id: I721f1a532e949c98346086abdc2630a8df6eba7b Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1463546 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 6c846251..71ff8d3e 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -1005,6 +1005,8 @@ struct gk20a {
1005 /* Debugfs knob for forcing syncpt support off in runtime. */ 1005 /* Debugfs knob for forcing syncpt support off in runtime. */
1006 u32 disable_syncpoints; 1006 u32 disable_syncpoints;
1007 1007
1008 bool support_pmu;
1009
1008 u32 emc3d_ratio; 1010 u32 emc3d_ratio;
1009 1011
1010#ifdef CONFIG_DEBUG_FS 1012#ifdef CONFIG_DEBUG_FS