Make it compile again.

main
Kristian Høgsberg 2008-07-22 14:24:32 -04:00
parent 5282a505b6
commit 6d4e147480
2 changed files with 9 additions and 1 deletions

View File

@ -386,4 +386,12 @@ extern struct page *drm_vm_sg_nopage(struct vm_area_struct *vma,
unsigned long address, int *type); unsigned long address, int *type);
#endif #endif
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26)
#define drm_on_each_cpu(handler, data, wait) \
on_each_cpu(handler, data, wait)
#else
#define drm_on_each_cpu(handler, data, wait) \
on_each_cpu(handler, data, wait, 1)
#endif
#endif #endif

View File

@ -72,7 +72,7 @@ void drm_ttm_cache_flush(struct page *pages[], unsigned long num_pages)
return; return;
} }
#endif #endif
if (on_each_cpu(drm_ttm_ipi_handler, NULL, 1, 1) != 0) if (drm_on_each_cpu(drm_ttm_ipi_handler, NULL, 1) != 0)
DRM_ERROR("Timed out waiting for drm cache flush.\n"); DRM_ERROR("Timed out waiting for drm cache flush.\n");
} }
EXPORT_SYMBOL(drm_ttm_cache_flush); EXPORT_SYMBOL(drm_ttm_cache_flush);