]> err.no Git - linux-2.6/commitdiff
drm: add __GFP_COMP to the drm_alloc_pages
authorDave Airlie <airlied@starflyer.(none)>
Wed, 23 Nov 2005 11:09:13 +0000 (22:09 +1100)
committerDave Airlie <airlied@linux.ie>
Wed, 23 Nov 2005 11:09:13 +0000 (22:09 +1100)
The DRM only uses drm_alloc_pages for non-SG PCI cards using DRM.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_memory.c
drivers/char/drm/drm_memory_debug.h

index 2c74155aa84fb50c3fe1d831af4289f691799574..abef2acf99f596d67d34b29031c85cfadcd3afc3 100644 (file)
@@ -95,7 +95,7 @@ unsigned long drm_alloc_pages(int order, int area)
        unsigned long addr;
        unsigned int sz;
 
-       address = __get_free_pages(GFP_KERNEL, order);
+       address = __get_free_pages(GFP_KERNEL|__GFP_COMP, order);
        if (!address)
                return 0;
 
index 4542353195bd1f6c7c7f1682e7e3bb0ff5a6953a..b370aca718d278602217bbbcb58fb5812218c96d 100644 (file)
@@ -221,7 +221,7 @@ unsigned long DRM(alloc_pages) (int order, int area) {
        }
        spin_unlock(&DRM(mem_lock));
 
-       address = __get_free_pages(GFP_KERNEL, order);
+       address = __get_free_pages(GFP_KERNEL|__GFP_COMP, order);
        if (!address) {
                spin_lock(&DRM(mem_lock));
                ++DRM(mem_stats)[area].fail_count;