]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
amdkfd: Introduce kfd_create_process_sysfs as a separate function
authorZhu Lingshan <lingshan.zhu@amd.com>
Tue, 22 Apr 2025 09:28:41 +0000 (17:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:41 +0000 (13:56 -0500)
commit4cd255b9694647b784f085ae144b727b6ffdfbfc
tree06c98d03d8080b6e24ec0017b8131ee53e285eef
parentf433db9c4b36c0963616def8dcc4696d1aafb95e
amdkfd: Introduce kfd_create_process_sysfs as a separate function

KFD creates sysfs entries for a kfd_process in
function kfd_create_process when creating it.

This commit extracts the code creating sysfs
entries to a separate function because it
would be invoked in other code path like
creating secondary kfd contexts (kfd_process).

Signed-off-by: Zhu Lingshan <lingshan.zhu@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c