]> 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)
commit73c367568d5c9fd60996f35c545da6db8523d1fd
tree0bc611763a4ea35f22fb7dad8879464c5f63f7f2
parentedab17bfd8d4f881ccae96ef01c440292d304ab0
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