From: Daniel Vetter Date: Sun, 25 Mar 2012 17:47:40 +0000 (+0200) Subject: drm/i915: extract copy helpers from shmem_pread|pwrite X-Git-Tag: v3.5-rc1~83^2~140^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d174bd6472d79fb5603dc8bd35e5184d83194ea8;p=pandora-kernel.git drm/i915: extract copy helpers from shmem_pread|pwrite While moving around things, this two functions slowly grew out of any sane bounds. So extract a few lines that do the copying and clflushing. Also add a few comments to explain what's going on. v2: Again do s/needs_clflush/needs_clflush_after/ in the write paths as suggested by Chris Wilson. Tested-by: Chris Wilson Reviewed-by: Chris Wilson Signed-Off-by: Daniel Vetter --- Reading git-diff-tree failed