|
@@ -72,7 +72,7 @@ drm_clflush_pages(struct page *pages[], unsigned long num_pages)
|
|
|
{
|
|
|
|
|
|
#if defined(CONFIG_X86)
|
|
|
- if (cpu_has_clflush) {
|
|
|
+ if (static_cpu_has(X86_FEATURE_CLFLUSH)) {
|
|
|
drm_cache_flush_clflush(pages, num_pages);
|
|
|
return;
|
|
|
}
|
|
@@ -105,7 +105,7 @@ void
|
|
|
drm_clflush_sg(struct sg_table *st)
|
|
|
{
|
|
|
#if defined(CONFIG_X86)
|
|
|
- if (cpu_has_clflush) {
|
|
|
+ if (static_cpu_has(X86_FEATURE_CLFLUSH)) {
|
|
|
struct sg_page_iter sg_iter;
|
|
|
|
|
|
mb();
|
|
@@ -129,7 +129,7 @@ void
|
|
|
drm_clflush_virt_range(void *addr, unsigned long length)
|
|
|
{
|
|
|
#if defined(CONFIG_X86)
|
|
|
- if (cpu_has_clflush) {
|
|
|
+ if (static_cpu_has(X86_FEATURE_CLFLUSH)) {
|
|
|
const int size = boot_cpu_data.x86_clflush_size;
|
|
|
void *end = addr + length;
|
|
|
addr = (void *)(((unsigned long)addr) & -size);
|