diff options
author | Ross Zwisler <ross.zwisler@linux.intel.com> | 2014-02-26 23:06:52 +0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-02-27 20:26:31 +0400 |
commit | 2a0788dc9bc46789ec98aea0f30c6fb420196b12 (patch) | |
tree | 3f88e9ce41c9e43be9398c331ef6ec5a1db88bd1 /drivers/gpu/drm/drm_cache.c | |
parent | 2a0c772f1967565d5b71a98012e74d5a7bddc1c4 (diff) | |
download | linux-2a0788dc9bc46789ec98aea0f30c6fb420196b12.tar.xz |
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 <ross.zwisler@linux.intel.com>
Link: http://lkml.kernel.org/r/1393441612-19729-5-git-send-email-ross.zwisler@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/drm_cache.c')
-rw-r--r-- | drivers/gpu/drm/drm_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |