diff options
| author | Lucas Stach <l.stach@pengutronix.de> | 2017-12-06 11:49:39 -0500 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-07 11:51:56 -0500 |
| commit | 1b1f42d8fde4fef1ed7873bf5aa91755f8c3de35 (patch) | |
| tree | 3039b957f8ef645419b5649d28dc7ece3e9ceecd /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | 9ce6aae12c66adf87b5861f8fa5705ea11d0b6ee (diff) | |
drm: move amd_gpu_scheduler into common location
This moves and renames the AMDGPU scheduler to a common location in DRM
in order to facilitate re-use by other drivers. This is mostly a straight
forward rename with no code changes.
One notable exception is the function to_drm_sched_fence(), which is no
longer a inline header function to avoid the need to export the
drm_sched_fence_ops_scheduled and drm_sched_fence_ops_finished structures.
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 31383e004947..1d8011bca182 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |||
| @@ -912,7 +912,7 @@ static int __init amdgpu_init(void) | |||
| 912 | if (r) | 912 | if (r) |
| 913 | goto error_fence; | 913 | goto error_fence; |
| 914 | 914 | ||
| 915 | r = amd_sched_fence_slab_init(); | 915 | r = drm_sched_fence_slab_init(); |
| 916 | if (r) | 916 | if (r) |
| 917 | goto error_sched; | 917 | goto error_sched; |
| 918 | 918 | ||
| @@ -944,7 +944,7 @@ static void __exit amdgpu_exit(void) | |||
| 944 | pci_unregister_driver(pdriver); | 944 | pci_unregister_driver(pdriver); |
| 945 | amdgpu_unregister_atpx_handler(); | 945 | amdgpu_unregister_atpx_handler(); |
| 946 | amdgpu_sync_fini(); | 946 | amdgpu_sync_fini(); |
| 947 | amd_sched_fence_slab_fini(); | 947 | drm_sched_fence_slab_fini(); |
| 948 | amdgpu_fence_slab_fini(); | 948 | amdgpu_fence_slab_fini(); |
| 949 | } | 949 | } |
| 950 | 950 | ||
