diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-14 18:25:57 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-28 01:07:04 -0400 |
commit | f6c92780ffe3b79cb84fb6d4321dcc13d2a07f73 (patch) | |
tree | b3a186dce91e621e0145a1a5bb1afca1e1b2de55 /drivers/gpu/nvgpu/vgpu | |
parent | cacd455dfdcb8864e296268a230cc490759a3f9e (diff) |
gpu: nvgpu: Move ptimer_src_freq to gk20a
Copy ptimer_src_freq to struct gk20a at probe time, and access it from
gk20a instead of platform_gk20a.
JIRA NVGPU-16
Change-Id: I92c1b83d6e2305a19eb2cd267b7dd8d97c1fdc44
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1463544
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index a98006f2..0f1fa814 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c | |||
@@ -241,6 +241,7 @@ static void vgpu_init_vars(struct gk20a *g, struct gk20a_platform *platform) | |||
241 | g->aggressive_sync_destroy = platform->aggressive_sync_destroy; | 241 | g->aggressive_sync_destroy = platform->aggressive_sync_destroy; |
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 | } | 245 | } |
245 | 246 | ||
246 | static int vgpu_init_support(struct platform_device *pdev) | 247 | static int vgpu_init_support(struct platform_device *pdev) |