drm/ttm: move ghost object creation to a common function
authorDave Airlie <airlied@redhat.com>
Thu, 17 Sep 2020 04:08:29 +0000 (14:08 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 17 Sep 2020 20:21:25 +0000 (06:21 +1000)
commit13a8f46d8030e519939bfb674f7aa541109f6ce2
treebb64d06fdc42a08fe21ad1b28bb860271a9f50e4
parent2ee476f77ffe5a7ecbd4e1e20fa0859cb541530d
drm/ttm: move ghost object creation to a common function

Both accel cleanup and pipeline move had the same code, make
a single function for it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200917043040.146575-7-airlied@gmail.com
drivers/gpu/drm/ttm/ttm_bo_util.c