]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915: prefer i915_gem_object_has_pages()
authorMatthew Auld <matthew.auld@intel.com>
Mon, 18 Dec 2017 10:38:55 +0000 (10:38 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 18 Dec 2017 11:53:29 +0000 (11:53 +0000)
commitb65a9b98218fe1e3ae1ad2c240c39179f1dd1b9a
tree2d9de1643284094e7e3bf3292039c26c307d0bf9
parenta31d73c3a7218539bc25fc298ac6cd5b66d96b86
drm/i915: prefer i915_gem_object_has_pages()

We have an existing helper for testing obj->mm.pages, so use it.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20171218103855.25274-1-matthew.auld@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/selftests/huge_pages.c