drm/i915: Micro-optimise i915_get_ggtt_vma_pages()
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Feb 2017 08:43:35 +0000 (08:43 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Feb 2017 10:05:51 +0000 (10:05 +0000)
commitba7a5741b9ee6e9f682f949c8db6a96201ab4ca1
tree6f4192c1b053c9b4ecc689525ca70b69a740d3b5
parentdfb65e71ea2c1d97ac373cc0587dc60b3307581a
drm/i915: Micro-optimise i915_get_ggtt_vma_pages()

The predominant VMA class is normal GTT, so allow gcc to emphasize that
path and avoid unnecessary stack movement.

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