]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Simplify madvise_preferred_mem_loc()
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Fri, 19 Dec 2025 11:33:10 +0000 (12:33 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 23 Dec 2025 09:00:48 +0000 (10:00 +0100)
commit4be5f2bc811a5811a8ec42dfbb603dbc12e8948a
tree1cdcc484bdf889501c249a658e34ebe2a72aca62
parent238dbc9d9f4a7396e87d357567e09dcd270d9e16
drm/xe: Simplify madvise_preferred_mem_loc()

Simplify madvise_preferred_mem_loc by removing repetitive patterns
in favour of local variables.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20251219113320.183860-15-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/xe/xe_vm_madvise.c
drivers/gpu/drm/xe/xe_vm_types.h