]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: use shmem helpers if possible
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 25 May 2014 10:24:42 +0000 (12:24 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 17 Jun 2014 20:30:50 +0000 (22:30 +0200)
commit1e43a06a2f6f28c3f8f43e008bebd7828f62ef24
tree8863069c58958ae162396b669c314ee924a5f0e1
parent59068ad9975fcf753244af1b8c613c9a7e87e612
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>
drivers/gpu/drm/i915/i915_gem.c