From: Ross Zwisler Date: Wed, 14 May 2014 15:41:12 +0000 (-0600) Subject: drm: Missed clflushopt in drm_clflush_virt_range X-Git-Tag: v5.15~17777^2~16^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7927096868061ff10fdb33b295dc0bcfebe2b35b;p=platform%2Fkernel%2Flinux-starfive.git drm: Missed clflushopt in drm_clflush_virt_range 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 Reported-by: Matthew Wilcox Cc: David Airlie Cc: dri-devel@lists.freedesktop.org Cc: H Peter Anvin Cc: Ingo Molnar Cc: Thomas Gleixner Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/drm_cache.c b/drivers/gpu/drm/drm_cache.c index ae251b8..a6b6906 100644 --- a/drivers/gpu/drm/drm_cache.c +++ b/drivers/gpu/drm/drm_cache.c @@ -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;