]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Convert select_sched into a common helper v3
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 16 Jun 2025 09:05:05 +0000 (17:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jun 2025 14:03:32 +0000 (10:03 -0400)
commitbf587417ffb5ed86b07b65ca9f928915477273c0
tree4303e9e83edf69ddd5a197da735ae7bf4ef1ed29
parent37b791d667bed3a43cbbcc5b7e7b69813e4c528f
drm/amdgpu: Convert select_sched into a common helper v3

The xcp select_sched function does not need to
remain as a soc specific callback. It can be reused
for future products

v2: bypass the function if xcp_mgr is not available (Likun)

v3: Let caller check the availability of xcp mgr (Lijo)

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h
drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c