Commit 0678c15b authored by Zhaoyu Liu's avatar Zhaoyu Liu Committed by Christian König
Browse files

drm/ttm: use ttm_resource_unevictable() to replace pin_count and swapped



TTM always uses pin_count and ttm_resource_is_swapped() together to
determine whether a BO is unevictable.
Now use ttm_resource_unevictable() to replace them.

Signed-off-by: default avatarZhaoyu Liu <liuzhaoyu.zackary@bytedance.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250126093256.GA688734@bytedance


Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
parent 011529fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment