Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon: Remove deprecated create_singlethread_workqueue

alloc_workqueue replaces deprecated create_singlethread_workqueue().

Each hardware CRTC has a single flip work queue.
When a radeon_flip_work_func item is queued, it needs to be executed
ASAP because even a slight delay may cause the flip to be delayed by
one refresh cycle.

Hence, a dedicated workqueue with WQ_HIGHPRI set, has been used here
since a delay can cause the outcome to miss the refresh cycle.

Since there are only a fixed number of work items, explicit concurrency
limit is unnecessary here.

Reviewed-by: Christian König <christian.koenig@amd.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Bhaktipriya Shridhar and committed by
Alex Deucher
a37cfa8b 63edf1b4

+1 -1
+1 -1
drivers/gpu/drm/radeon/radeon_display.c
··· 714 714 715 715 drm_mode_crtc_set_gamma_size(&radeon_crtc->base, 256); 716 716 radeon_crtc->crtc_id = index; 717 - radeon_crtc->flip_queue = create_singlethread_workqueue("radeon-crtc"); 717 + radeon_crtc->flip_queue = alloc_workqueue("radeon-crtc", WQ_HIGHPRI, 0); 718 718 rdev->mode_info.crtcs[index] = radeon_crtc; 719 719 720 720 if (rdev->family >= CHIP_BONAIRE) {