From: Ross Zwisler Date: Wed, 26 Feb 2014 19:06:52 +0000 (-0700) Subject: x86: Use clflushopt in drm_clflush_virt_range X-Git-Tag: next-20140306~34^2~6^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2a0788dc9bc4;p=karo-tx-linux.git x86: Use clflushopt in drm_clflush_virt_range If clflushopt is available on the system, use it instead of clflush in drm_clflush_virt_range. Signed-off-by: Ross Zwisler Link: http://lkml.kernel.org/r/1393441612-19729-5-git-send-email-ross.zwisler@linux.intel.com Signed-off-by: H. Peter Anvin --- diff --git a/drivers/gpu/drm/drm_cache.c b/drivers/gpu/drm/drm_cache.c index c518fb6cfb63..534cb89b160d 100644 --- a/drivers/gpu/drm/drm_cache.c +++ b/drivers/gpu/drm/drm_cache.c @@ -139,7 +139,7 @@ drm_clflush_virt_range(char *addr, unsigned long length) mb(); for (; addr < end; addr += boot_cpu_data.x86_clflush_size) clflush(addr); - clflush(end - 1); + clflushopt(end - 1); mb(); return; }