]> git.baikalelectronics.ru Git - kernel.git/commit
drm/scheduler: implement a function to modify sched list
authorNirmoy Das <nirmoy.das@amd.com>
Thu, 27 Feb 2020 14:34:15 +0000 (15:34 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Mar 2020 17:51:35 +0000 (13:51 -0400)
commitf1c7c5287087d8ca08f445fd92cfe3fb88941c08
treefe0d59b0b3e724b0192ce394397f9be8e7a6145e
parent936c043de7167a30bb59fed770e8670a502e27e9
drm/scheduler: implement a function to modify sched list

Implement drm_sched_entity_modify_sched() which modifies existing
sched_list with a different one. This is going to be helpful when
userspace changes priority of a ctx/entity then the driver can switch
to the corresponding HW scheduler list for that priority.

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/scheduler/sched_entity.c
include/drm/gpu_scheduler.h