]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: use shmem helpers if possible
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 25 May 2014 12:34:10 +0000 (14:34 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 3 Jun 2014 14:36:03 +0000 (16:36 +0200)
commit565139efc7bc6fd6496dcdd6da5c03f19871403a
tree57e8a74952d84f7347ea743254c4fc445c82f961
parent9c7530ac57ddcbc3e421023294c92bd48ebf6909
drm/i915: use shmem helpers if possible

Instead of shuffling gfp-masks all the time, use the
shmem_read_mapping_page() helper. Note that __GFP_IO and __GFP_WAIT are
set in mapping_gfp_mask() for i915, so the behavior is still the same.

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c