diff options
author | Richard Zhao <rizhao@nvidia.com> | 2017-08-21 19:07:07 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-09-22 00:18:04 -0400 |
commit | 2197a928c38ae8d518ad18348c7c2106fb56e230 (patch) | |
tree | a398426378c3b5d280bf3e7d2f181105dce15497 /drivers/gpu/nvgpu | |
parent | 774899f30aaae13aa92a3490714cf23fceb8ce49 (diff) |
gpu: nvgpu: vgpu: make vgpu_init_gpu_characteristics global
vgpu_init_gpu_characteristics will be used by others.
Jira VFND-3797
Change-Id: I3b6216bc303bc6d4ea33da691791ddc718190766
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1543013
Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Martinez Nieto <dmartineznie@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index 33472213..f0d6fdb3 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c | |||
@@ -341,7 +341,7 @@ static void vgpu_detect_chip(struct gk20a *g) | |||
341 | g->gpu_characteristics.rev); | 341 | g->gpu_characteristics.rev); |
342 | } | 342 | } |
343 | 343 | ||
344 | static int vgpu_init_gpu_characteristics(struct gk20a *g) | 344 | int vgpu_init_gpu_characteristics(struct gk20a *g) |
345 | { | 345 | { |
346 | struct vgpu_priv_data *priv = vgpu_get_priv_data(g); | 346 | struct vgpu_priv_data *priv = vgpu_get_priv_data(g); |
347 | int err; | 347 | int err; |
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.h b/drivers/gpu/nvgpu/vgpu/vgpu.h index c5e57efa..437dec46 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.h +++ b/drivers/gpu/nvgpu/vgpu/vgpu.h | |||
@@ -108,6 +108,7 @@ int vgpu_gm20b_init_hal(struct gk20a *g); | |||
108 | int vgpu_gp10b_init_hal(struct gk20a *g); | 108 | int vgpu_gp10b_init_hal(struct gk20a *g); |
109 | 109 | ||
110 | void vgpu_init_dbg_session_ops(struct gpu_ops *gops); | 110 | void vgpu_init_dbg_session_ops(struct gpu_ops *gops); |
111 | int vgpu_init_gpu_characteristics(struct gk20a *g); | ||
111 | 112 | ||
112 | void vgpu_create_sysfs(struct device *dev); | 113 | void vgpu_create_sysfs(struct device *dev); |
113 | void vgpu_remove_sysfs(struct device *dev); | 114 | void vgpu_remove_sysfs(struct device *dev); |