summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Mandin <pmandin@caramail.com>2008-04-07 22:24:24 +0200
committerPatrice Mandin <pmandin@caramail.com>2008-04-07 22:24:24 +0200
commitdb61f02bd7e4b9d5ac416f1ef98bac1bd4d984bc (patch)
treeacebdbc3187b19de215b57321c460a9f20c113af
parent27c3785d3f12743a9e160238a4d00353060ec2f2 (diff)
Missing KERNEL_VERSION macro
-rw-r--r--linux-core/drm_ttm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_ttm.c b/linux-core/drm_ttm.c
index c306a2c0..80a8ff5d 100644
--- a/linux-core/drm_ttm.c
+++ b/linux-core/drm_ttm.c
@@ -30,7 +30,7 @@
#include "drmP.h"
-#if defined( CONFIG_X86 ) && (LINUX_VERSION_CODE >= (2,6,24))
+#if defined( CONFIG_X86 ) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
static void drm_clflush_page(struct page *page)
{
uint8_t *page_virtual;
@@ -66,7 +66,7 @@ static void drm_ttm_ipi_handler(void *null)
void drm_ttm_cache_flush(struct page *pages[], unsigned long num_pages)
{
-#if defined( CONFIG_X86 ) && (LINUX_VERSION_CODE >= (2,6,24))
+#if defined( CONFIG_X86 ) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
if (cpu_has_clflush) {
drm_ttm_cache_flush_clflush(pages, num_pages);
return;