diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-14 18:12:57 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-14 03:05:12 -0400 |
commit | 7acc993cdbcc202854f188e7f53646f387573a09 (patch) | |
tree | 61d213424ed8985973fa7ee3e4580c7b1b95bd3b /drivers/gpu/nvgpu/vgpu | |
parent | ab22d66386e3a23e0dfe897bca25e01623f6d61c (diff) |
gpu: nvgpu: Move can_railgate & railgate_delay to gk20a
Copy can_railgate and railgate_delay to struct gk20a at probe time,
and access them from gk20a instead of platform_gk20a.
JIRA NVGPU-16
Change-Id: I63d4f4aff7eb17a167775fd7982a1b548bbca3a5
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1463543
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index 7e012fb0..248d2a1b 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c | |||
@@ -242,6 +242,8 @@ static void vgpu_init_vars(struct gk20a *g, struct gk20a_platform *platform) | |||
242 | g->aggressive_sync_destroy_thresh = platform->aggressive_sync_destroy_thresh; | 242 | g->aggressive_sync_destroy_thresh = platform->aggressive_sync_destroy_thresh; |
243 | g->has_syncpoints = platform->has_syncpoints; | 243 | g->has_syncpoints = platform->has_syncpoints; |
244 | g->ptimer_src_freq = platform->ptimer_src_freq; | 244 | g->ptimer_src_freq = platform->ptimer_src_freq; |
245 | g->can_railgate = platform->can_railgate_init; | ||
246 | g->railgate_delay = platform->railgate_delay_init; | ||
245 | } | 247 | } |
246 | 248 | ||
247 | static int vgpu_init_support(struct platform_device *pdev) | 249 | static int vgpu_init_support(struct platform_device *pdev) |