Missing KERNEL_VERSION macro
authorPatrice Mandin <pmandin@caramail.com>
Mon, 7 Apr 2008 20:24:24 +0000 (22:24 +0200)
committerPatrice Mandin <pmandin@caramail.com>
Mon, 7 Apr 2008 20:24:24 +0000 (22:24 +0200)
linux-core/drm_ttm.c

index c306a2c..80a8ff5 100644 (file)
@@ -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;