summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500/gtt.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2012-02-07 11:33:48 +0100
committerIngo Molnar <mingo@elte.hu>2012-02-07 11:33:51 +0100
commit7915a2e902df9fdb5ea5d5786a4172b38d0ea71e (patch)
tree72b67d3079ffad2f5e21a5a449d210b355da13b6 /drivers/gpu/drm/gma500/gtt.c
parent35f1790e6c6a7e4cae57b616cf36444d27fa6b28 (diff)
parent23783f817bceedd6d4e549385e3f400ea64059e5 (diff)
downloadop-kernel-dev-7915a2e902df9fdb5ea5d5786a4172b38d0ea71e.zip
op-kernel-dev-7915a2e902df9fdb5ea5d5786a4172b38d0ea71e.tar.gz
Merge branch 'linus' into x86/boot
Merge this into x86/boot so that we can queue up dependent patches. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/gpu/drm/gma500/gtt.c')
-rw-r--r--drivers/gpu/drm/gma500/gtt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/gma500/gtt.c b/drivers/gpu/drm/gma500/gtt.c
index e770bd1..5d5330f 100644
--- a/drivers/gpu/drm/gma500/gtt.c
+++ b/drivers/gpu/drm/gma500/gtt.c
@@ -20,6 +20,7 @@
*/
#include <drm/drmP.h>
+#include <linux/shmem_fs.h>
#include "psb_drv.h"
@@ -203,9 +204,7 @@ static int psb_gtt_attach_pages(struct gtt_range *gt)
gt->npage = pages;
for (i = 0; i < pages; i++) {
- /* FIXME: needs updating as per mail from Hugh Dickins */
- p = read_cache_page_gfp(mapping, i,
- __GFP_COLD | GFP_KERNEL);
+ p = shmem_read_mapping_page(mapping, i);
if (IS_ERR(p))
goto err;
gt->pages[i] = p;
OpenPOWER on IntegriCloud