summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-04-14 18:40:47 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-26 12:14:26 -0400
commit71af78d2c22c6519b1ae2cbe3826f05e178d86f6 (patch)
treed5b1b51c9fe318caebea65b872153d2da977e278 /drivers/gpu/nvgpu/common
parent388113aa19c202edd261e49f8c169f0b31ade784 (diff)
gpu: nvgpu: Move has_syncpts to gk20a
Copy has_syncpts to struct gk20a at probe time, and access it from gk20a instead of platform_gk20a. JIRA NVGPU-16 Change-Id: I50329e3a5141a62e6e9828e97ea0747abc1ce1ee Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1463545 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-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 31cc879c..b4d88b08 100644
--- a/drivers/gpu/nvgpu/common/linux/driver_common.c
+++ b/drivers/gpu/nvgpu/common/linux/driver_common.c
@@ -107,6 +107,7 @@ static void nvgpu_init_pm_vars(struct gk20a *g)
107 g->default_pri_timeout = platform->default_pri_timeout; 107 g->default_pri_timeout = platform->default_pri_timeout;
108 g->aggressive_sync_destroy = platform->aggressive_sync_destroy; 108 g->aggressive_sync_destroy = platform->aggressive_sync_destroy;
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 111
111 /* set default values to aelpg parameters */ 112 /* set default values to aelpg parameters */
112 g->pmu.aelpg_param[0] = APCTRL_SAMPLING_PERIOD_PG_DEFAULT_US; 113 g->pmu.aelpg_param[0] = APCTRL_SAMPLING_PERIOD_PG_DEFAULT_US;