From 39fefc77fa8e7310a7dd62531864f59bf98a4082 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Tue, 5 Nov 2024 18:45:24 +0900 Subject: gpu: drm: img: Replace system work flush with img dedicated workqueue Remove deprecated flush_scheduled_work() and use already added flush_workqueue() without considering kernel version. Change-Id: I226e2a7bb845497aa38c020d5c178624b8768e18 Signed-off-by: Seung-Woo Kim --- drivers/gpu/drm/img-rogue/pvr_fence.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/img-rogue/pvr_fence.h b/drivers/gpu/drm/img-rogue/pvr_fence.h index 25ecc8bb9911..126eded1ef26 100644 --- a/drivers/gpu/drm/img-rogue/pvr_fence.h +++ b/drivers/gpu/drm/img-rogue/pvr_fence.h @@ -196,11 +196,7 @@ static inline void pvr_fence_cleanup(void) * Ensure all PVR fence contexts have been destroyed, by flushing * the global workqueue. */ -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 36)) flush_workqueue(NativeSyncGetFenceCtxDestroyWq()); -#else - flush_scheduled_work(); -#endif } #endif -- cgit v1.2.3