projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a0c772
)
x86: Use clflushopt in drm_clflush_virt_range
author
Ross Zwisler
<ross.zwisler@linux.intel.com>
Wed, 26 Feb 2014 19:06:52 +0000
(12:06 -0700)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Thu, 27 Feb 2014 16:26:31 +0000
(08:26 -0800)
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>
drivers/gpu/drm/drm_cache.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/drm_cache.c
b/drivers/gpu/drm/drm_cache.c
index c518fb6cfb63b1551d8d6d07eb58dec8fce20d04..534cb89b160d686d60218dad53082be9b0f331ea 100644
(file)
--- 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);
+ clflush
opt
(end - 1);
mb();
return;
}