drm: Missed clflushopt in drm_clflush_virt_range
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Wed, 14 May 2014 15:41:12 +0000 (09:41 -0600)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 2 Jun 2014 07:57:31 +0000 (09:57 +0200)
With this commit:

2a0788dc9bc4 x86: Use clflushopt in drm_clflush_virt_range

If clflushopt is available on the system, we use it instead of clflush
in drm_clflush_virt_range.  There were two calls to clflush in this
function, but only one was changed to clflushopt.  This patch changes
the other clflush call to clflushopt.

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reported-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Cc: David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Cc: H Peter Anvin <h.peter.anvin@intel.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_cache.c

index ae251b8abd0ec08295aa294e62c277f5eef5d3c0..a6b690626a6b0563e026e9217859cc2505aadb76 100644 (file)
@@ -138,7 +138,7 @@ drm_clflush_virt_range(void *addr, unsigned long length)
                void *end = addr + length;
                mb();
                for (; addr < end; addr += boot_cpu_data.x86_clflush_size)
-                       clflush(addr);
+                       clflushopt(addr);
                clflushopt(end - 1);
                mb();
                return;