31 #include <linux/export.h>
34 #if defined(CONFIG_X86)
47 clflush(page_virtual + i);
51 static void drm_cache_flush_clflush(
struct page *
pages[],
58 drm_clflush_page(*pages++);
63 drm_clflush_ipi_handler(
void *null)
73 #if defined(CONFIG_X86)
74 if (cpu_has_clflush) {
75 drm_cache_flush_clflush(pages, num_pages);
82 #elif defined(__powerpc__)
85 struct page *page = pages[
i];
93 (
unsigned long)page_virtual + PAGE_SIZE);
106 #if defined(CONFIG_X86)
107 if (cpu_has_clflush) {
113 drm_clflush_page(sg_page(sg));
131 #if defined(CONFIG_X86)
132 if (cpu_has_clflush) {