summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/driver_common.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-04-14 16:36:05 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-24 16:24:50 -0400
commit8478f6356a94651dca1aed8c65df0ca0f0a50016 (patch)
tree882047337ffebd68dcd373a1c357406ceae82a1c /drivers/gpu/nvgpu/common/linux/driver_common.c
parentb3e1ce04b963e91b9b425b3c35cc4eff11db7543 (diff)
gpu: nvgpu: Move aggressive_sync_destroy to gk20a
Copy aggressive_sync_destroy* to struct gk20a at probe time, and access it from gk20a instead of platform_gk20a. JIRA NVGPU-16 Change-Id: I6a1c04d85580cb62ab9a52bae08a0f99fe7cfef9 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1463542 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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/driver_common.c b/drivers/gpu/nvgpu/common/linux/driver_common.c
index 10394b22..31cc879c 100644
--- a/drivers/gpu/nvgpu/common/linux/driver_common.c
+++ b/drivers/gpu/nvgpu/common/linux/driver_common.c
@@ -105,6 +105,8 @@ static void nvgpu_init_pm_vars(struct gk20a *g)
105 g->can_elpg = 105 g->can_elpg =
106 nvgpu_platform_is_silicon(g) ? platform->can_elpg : false; 106 nvgpu_platform_is_silicon(g) ? platform->can_elpg : false;
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;
109 g->aggressive_sync_destroy_thresh = platform->aggressive_sync_destroy_thresh;
108 110
109 /* set default values to aelpg parameters */ 111 /* set default values to aelpg parameters */
110 g->pmu.aelpg_param[0] = APCTRL_SAMPLING_PERIOD_PG_DEFAULT_US; 112 g->pmu.aelpg_param[0] = APCTRL_SAMPLING_PERIOD_PG_DEFAULT_US;