projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drm/ttm: Use GFP_TRANSHUGE_LIGHT for allocating huge pages
[linux-2.6-microblaze.git]
/
drivers
/
gpu
/
drm
/
ttm
/
ttm_page_alloc_dma.c
diff --git
a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
index
8a25d19
..
f63d99c
100644
(file)
--- a/
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
+++ b/
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
@@
-910,7
+910,8
@@
static gfp_t ttm_dma_pool_gfp_flags(struct ttm_dma_tt *ttm_dma, bool huge)
gfp_flags |= __GFP_ZERO;
if (huge) {
- gfp_flags |= GFP_TRANSHUGE;
+ gfp_flags |= GFP_TRANSHUGE_LIGHT | __GFP_NORETRY |
+ __GFP_KSWAPD_RECLAIM;
gfp_flags &= ~__GFP_MOVABLE;
gfp_flags &= ~__GFP_COMP;
}