]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Use prange->update_list head for remove_list
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 8 Dec 2021 22:51:43 +0000 (17:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jan 2022 20:44:27 +0000 (15:44 -0500)
commit91d4968fa9c8d634e994a99d92cd395716f04fe1
tree0bc611763a4ea35f22fb7dad8879464c5f63f7f2
parentf81486481737e3b7c4fd0177867dd4cfd0291bd8
drm/amdkfd: Use prange->update_list head for remove_list

The remove_list head was only used for keeping track of existing ranges
that are to be removed from the svms->list. The update_list was used for
new or existing ranges that need updated attributes. These two cases are
mutually exclusive (i.e. the same range will never be on both lists).
Therefore we can use the update_list head to track the remove_list and
save another 16 bytes in the svm_range struct.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.h