summaryrefslogtreecommitdiff
path: root/linux-core/drm_compat.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-07-22 14:24:32 -0400
committerKristian Høgsberg <krh@redhat.com>2008-07-30 16:34:37 -0400
commit6d4e147480a334d32fa59c7fde53e10d7ab6e106 (patch)
tree3922ba7d8b20241c8a6718b4f9a3091abe3eb45a /linux-core/drm_compat.h
parent5282a505b6fd1f0e2bb772b15daf652f7149f370 (diff)
Make it compile again.
Diffstat (limited to 'linux-core/drm_compat.h')
-rw-r--r--linux-core/drm_compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h
index cfa4fc6d..564a9438 100644
--- a/linux-core/drm_compat.h
+++ b/linux-core/drm_compat.h
@@ -386,4 +386,12 @@ extern struct page *drm_vm_sg_nopage(struct vm_area_struct *vma,
unsigned long address, int *type);
#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