Skip to content

Commit

Permalink
x86: Use clflushopt in drm_clflush_virt_range
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ross Zwisler authored and H. Peter Anvin committed Feb 27, 2014
1 parent 2a0c772 commit 2a0788d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/drm_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2a0788d

Please sign in to comment.