]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/ttm: Use a struct for the common part of struct ttm_lru_walk and struct ttm_bo_lr...
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 23 Jun 2025 15:53:11 +0000 (17:53 +0200)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 26 Jun 2025 15:15:31 +0000 (17:15 +0200)
commitc8e3d6d77507c42cc1a02783f70e1e4e85e3c80f
treeb6977bc0263f24d0ec7a771efd739d408295ce36
parent34a3554a1c7059b861db2aafb052a256f38813d6
drm/ttm: Use a struct for the common part of struct ttm_lru_walk and struct ttm_bo_lru_cursor

Let the locking functions take the new struct ttm_lru_walk_arg
as argument in order for them to be easily used from both
types of walk.

v2:
- Whitespace fix

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20250623155313.4901-2-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_util.c
include/drm/ttm/ttm_bo.h