[Intel-gfx] [PATCH v2 2/3] drm/i915/gem: Remove logic for wbinvd_on_all_cpus
Michael Cheng
michael.cheng at intel.com
Thu Feb 17 20:26:43 UTC 2022
drm_cache.h now handles calls to wbinvd_on_all_cpus.
Signed-off-by: Michael Cheng <michael.cheng at intel.com>
---
drivers/gpu/drm/i915/gem/i915_gem_pm.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_pm.c b/drivers/gpu/drm/i915/gem/i915_gem_pm.c
index 00359ec9d58b..ee4783e4d135 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_pm.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_pm.c
@@ -13,12 +13,7 @@
#include "i915_driver.h"
#include "i915_drv.h"
-#if defined(CONFIG_X86)
-#include <asm/smp.h>
-#else
-#define wbinvd_on_all_cpus() \
- pr_warn(DRIVER_NAME ": Missing cache flush in %s\n", __func__)
-#endif
+#include <drm/drm_cache.h>
void i915_gem_suspend(struct drm_i915_private *i915)
{
--
2.25.1
More information about the Intel-gfx
mailing list