[yocto] [PATCH 3/3] add patch linux-3.0.0-ttm-clear-high.patch
rahul.saxena at intel.com
rahul.saxena at intel.com
Thu Apr 26 01:55:53 PDT 2012
From: Rahul Saxena <rahul.saxena at intel.com>
Add patch for TTM page allocation from high memory
Signed-off-by: Rahul Saxena <rahul.saxena at intel.com>
---
drivers/gpu/drm/ttm/ttm_page_alloc.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c b/drivers/gpu/drm/ttm/ttm_page_alloc.c
index d948575..df976d9 100644
--- a/drivers/gpu/drm/ttm/ttm_page_alloc.c
+++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c
@@ -708,7 +708,10 @@ int ttm_get_pages(struct list_head *pages, int flags,
/* clear the pages coming from the pool if requested */
if (flags & TTM_PAGE_FLAG_ZERO_ALLOC) {
list_for_each_entry(p, pages, lru) {
- clear_page(page_address(p));
+ if (PageHighMem(p))
+ clear_highpage(p);
+ else
+ clear_page(page_address(p));
}
}
--
1.7.4.1
More information about the yocto
mailing list