mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 17:29:02 +02:00
linux: on_each_cpu has 3 args on 2.6.27
This commit is contained in:
parent
af12ef4f6b
commit
ba840fca19
1 changed files with 5 additions and 1 deletions
|
|
@ -72,7 +72,11 @@ void drm_ttm_cache_flush(struct page *pages[], unsigned long num_pages)
|
|||
return;
|
||||
}
|
||||
#endif
|
||||
if (on_each_cpu(drm_ttm_ipi_handler, NULL, 1, 1) != 0)
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
|
||||
if (on_each_cpu(drm_ttm_ipi_handler, NULL, 1))
|
||||
#else
|
||||
if (on_each_cpu(drm_ttm_ipi_handler, NULL, 1, 1) != 0)
|
||||
#endif
|
||||
DRM_ERROR("Timed out waiting for drm cache flush.\n");
|
||||
}
|
||||
EXPORT_SYMBOL(drm_ttm_cache_flush);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue