Commit 1d738dbb authored by Sean Christopherson's avatar Sean Christopherson Committed by Borislav Petkov (AMD)
Browse files

drm/gpu: Remove dead checks on wbinvd_on_all_cpus()'s return value



Remove the checks and associated pr_err() on wbinvd_on_all_cpus() failure,
as the helper has unconditionally returned 0/success since commit

  caa75932 ("smp: Remove smp_call_function() and on_each_cpu() return values").

Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250522233733.3176144-2-seanjc@google.com
parent d7b8f8e2
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -93,8 +93,7 @@ drm_clflush_pages(struct page *pages[], unsigned long num_pages)
		return;
	}

	if (wbinvd_on_all_cpus())
		pr_err("Timed out waiting for cache flush\n");
	wbinvd_on_all_cpus();

#elif defined(__powerpc__)
	unsigned long i;
@@ -139,8 +138,7 @@ drm_clflush_sg(struct sg_table *st)
		return;
	}

	if (wbinvd_on_all_cpus())
		pr_err("Timed out waiting for cache flush\n");
	wbinvd_on_all_cpus();
#else
	WARN_ONCE(1, "Architecture has no drm_cache.c support\n");
#endif
@@ -172,8 +170,7 @@ drm_clflush_virt_range(void *addr, unsigned long length)
		return;
	}

	if (wbinvd_on_all_cpus())
		pr_err("Timed out waiting for cache flush\n");
	wbinvd_on_all_cpus();
#else
	WARN_ONCE(1, "Architecture has no drm_cache.c support\n");
#endif