linux_dsm_epyc7002/drivers/gpu/drm/amd
Bhaktipriya Shridhar fd320bf692 drm/amdkfd: Remove create_workqueue()
alloc_workqueue replaces deprecated create_workqueue().

create_workqueue has been replaced with alloc_workqueue with max_active
as 0 since there is no need for throttling the number of active work items.

WQ_MEM_RECLAIM has not been set to because kfd_process_wq will not be
used in memory reclaim path.

kfd_process_wq is used for delay destruction. A work item embedded in
kfd_process gets queued to kfd_process_wq and when it executes it
destroys and frees the containing kfd_process and thus itself.

This requires a dedicated workqueue because a work item once queued, may
get freed at any point of time and any external entity cannot
flush the work item. So, in order to wait for such a work item,
it needs to be put on a dedicated workqueue.

kfd_module_exit() calls kfd_process_destroy_wq which ensures that all
pending work items are finished before the module is removed.

flush_workqueue is unnecessary since destroy_workqueue() itself calls
drain_workqueue() which flushes repeatedly till the workqueue
becomes empty.

Hence flush_workqueue has been removed.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
2016-07-03 08:05:45 +03:00
..
acp drm/amd: add Kconfig dependency for ACP on DRM_AMDGPU 2016-05-25 09:44:15 -04:00
amdgpu Linux 4.7-rc5 2016-07-02 15:56:01 +10:00
amdkfd drm/amdkfd: Remove create_workqueue() 2016-07-03 08:05:45 +03:00
include drm/amdgpu/atombios: add avfs struct for Polaris10/11 2016-06-21 10:22:41 -04:00
powerplay drm/amd/powerplay: enable clock stretch feature for polaris 2016-06-21 10:22:42 -04:00
scheduler drm/amd: cleanup remaining spaces and tabs v2 2016-05-11 12:31:20 -04:00