summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/driver_common.c
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/common/linux/driver_common.c
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/common/linux/driver_common.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/driver_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/driver_common.c b/drivers/gpu/nvgpu/common/linux/driver_common.c
index 4919b03f..34bd2062 100644
--- a/drivers/gpu/nvgpu/common/linux/driver_common.c
+++ b/drivers/gpu/nvgpu/common/linux/driver_common.c
@@ -109,6 +109,7 @@ static void nvgpu_init_pm_vars(struct gk20a *g)
109 g->aggressive_sync_destroy_thresh = platform->aggressive_sync_destroy_thresh; 109 g->aggressive_sync_destroy_thresh = platform->aggressive_sync_destroy_thresh;
110 g->has_syncpoints = platform->has_syncpoints; 110 g->has_syncpoints = platform->has_syncpoints;
111 g->ptimer_src_freq = platform->ptimer_src_freq; 111 g->ptimer_src_freq = platform->ptimer_src_freq;
112 g->support_pmu = support_gk20a_pmu(g->dev);
112 113
113 /* set default values to aelpg parameters */ 114 /* set default values to aelpg parameters */
114 g->pmu.aelpg_param[0] = APCTRL_SAMPLING_PERIOD_PG_DEFAULT_US; 115 g->pmu.aelpg_param[0] = APCTRL_SAMPLING_PERIOD_PG_DEFAULT_US;