projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af12ef4
)
linux: on_each_cpu has 3 args on 2.6.27
author
Maarten Maathuis
<madman2003@gmail.com>
Thu, 14 Aug 2008 17:35:55 +0000
(19:35 +0200)
committer
Maarten Maathuis
<madman2003@gmail.com>
Sat, 16 Aug 2008 22:35:06 +0000
(
00:35
+0200)
linux-core/drm_ttm.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_ttm.c
b/linux-core/drm_ttm.c
index
80a8ff5
..
054a7ce
100644
(file)
--- 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);