summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-08-14 19:35:55 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-08-17 00:35:06 +0200
commitba840fca19077d352277519c5fa032e3b107ae27 (patch)
treecc56bd6ece541e829f3b219ce10d3d273a9e0392
parentaf12ef4f6b4ca111d9a2ef45263ad89610498724 (diff)
linux: on_each_cpu has 3 args on 2.6.27
-rw-r--r--linux-core/drm_ttm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/linux-core/drm_ttm.c b/linux-core/drm_ttm.c
index 80a8ff5d..054a7ce8 100644
--- a/linux-core/drm_ttm.c
+++ b/linux-core/drm_ttm.c
@@ -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);