drm/i915/userptr: Store i915 backpointer for i915_mm_struct
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Apr 2016 14:00:01 +0000 (15:00 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Apr 2016 19:39:16 +0000 (20:39 +0100)
commitf470b19095c2cdf11710fde16c1ba7fc01b3c753
tree6dfcb43a081fd3135395ab96a2699de037c46ae5
parent40313f0cd0b711a7a5905e5182422799e157d8aa
drm/i915/userptr: Store i915 backpointer for i915_mm_struct

Since we only ever use the drm_i915_private from the stored
i915_mm_struct->dev, save some electrons by storing the right
backpointer.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1459864801-28606-3-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_userptr.c