提交 79270968 编写于 作者: R Ross Zwisler 提交者: Daniel Vetter

drm: Missed clflushopt in drm_clflush_virt_range

With this commit:

2a0788dc 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: NRoss Zwisler <ross.zwisler@linux.intel.com>
Reported-by: NMatthew 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: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 233fd4ec
...@@ -138,7 +138,7 @@ drm_clflush_virt_range(void *addr, unsigned long length) ...@@ -138,7 +138,7 @@ drm_clflush_virt_range(void *addr, unsigned long length)
void *end = addr + length; void *end = addr + length;
mb(); mb();
for (; addr < end; addr += boot_cpu_data.x86_clflush_size) for (; addr < end; addr += boot_cpu_data.x86_clflush_size)
clflush(addr); clflushopt(addr);
clflushopt(end - 1); clflushopt(end - 1);
mb(); mb();
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册