Skip to content

Commit

Permalink
drm: add __GFP_COMP to the drm_alloc_pages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Nov 23, 2005
1 parent bd07ed2 commit c41f471
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/char/drm/drm_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion drivers/char/drm/drm_memory_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c41f471

Please sign in to comment.