drm/i915/gvt: Refine the intel_vgpu_mm reference management
authorChangbin Du <changbin.du@intel.com>
Tue, 30 Jan 2018 11:19:41 +0000 (19:19 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 6 Mar 2018 05:19:14 +0000 (13:19 +0800)
commit1bc258519dc72070f21291cdd37aeaa192082abd
treef94364f0f50d3573629ac86094d72d57250dd760
parentede9d0cfcb789b6fd86ecb71b4721a19c53956e6
drm/i915/gvt: Refine the intel_vgpu_mm reference management

If we manage an object with a reference count, then its life cycle
must flow the reference count operations. Meanwhile, change the
operation functions to generic name *put* and *get*.

Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c
drivers/gpu/drm/i915/gvt/gtt.h
drivers/gpu/drm/i915/gvt/scheduler.c