drm/i915: Extract mm switching to function
authorBen Widawsky <ben@bwidawsk.net>
Fri, 6 Dec 2013 22:11:10 +0000 (14:11 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Dec 2013 14:28:33 +0000 (15:28 +0100)
commiteeb9488e751a0a6401e7516a893efaf9d1f77fb5
treeb1fe7cd81806c7b91e908ce0755a2e0e3b055c36
parentb4a74e3adf616c5deb3c3c319352d89e62ff9ecc
drm/i915: Extract mm switching to function

In order to do the full context switch with address space, it's
convenient to have a way to switch the address space. We already have
this in our code - just pull it out to be called by the context switch
code later.

v2: Rebased on BDW support. Required adding BDW.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_gtt.c