drm/i915/gtt: Make I915_PDPES_PER_PDP inline function
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Tue, 28 Feb 2017 15:28:07 +0000 (17:28 +0200)
committerMika Kuoppala <mika.kuoppala@intel.com>
Fri, 3 Mar 2017 14:42:38 +0000 (16:42 +0200)
commit3e490042a80f82df80141fce1dbef1baa7850160
tree7b908fbf3c6a265534b74aa2b43b267f307b1df7
parent0542524944c2ae3264ca8e6b5f0c7a111f09a2c2
drm/i915/gtt: Make I915_PDPES_PER_PDP inline function

The macro takes a vm pointer at some sites, and dev_priv on others
We were saved as the internal macro never deferences the pointer
given.

As the number of pdpes depend on vm configuration, make it
as a inline function that accepts vm pointer.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wsilon.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1488295691-9404-1-git-send-email-mika.kuoppala@intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h