drm/scheduler: modify API to avoid redundancy
entity has a scheduler field and we don't need the sched argument in any of the functions where entity is provided. Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:

committed by
Alex Deucher

parent
bf314ca3f1
commit
cdc5017659
@@ -145,13 +145,11 @@ v3d_open(struct drm_device *dev, struct drm_file *file)
|
||||
static void
|
||||
v3d_postclose(struct drm_device *dev, struct drm_file *file)
|
||||
{
|
||||
struct v3d_dev *v3d = to_v3d_dev(dev);
|
||||
struct v3d_file_priv *v3d_priv = file->driver_priv;
|
||||
enum v3d_queue q;
|
||||
|
||||
for (q = 0; q < V3D_MAX_QUEUES; q++) {
|
||||
drm_sched_entity_destroy(&v3d->queue[q].sched,
|
||||
&v3d_priv->sched_entity[q]);
|
||||
drm_sched_entity_destroy(&v3d_priv->sched_entity[q]);
|
||||
}
|
||||
|
||||
kfree(v3d_priv);
|
||||
|
@@ -553,7 +553,6 @@ v3d_submit_cl_ioctl(struct drm_device *dev, void *data,
|
||||
mutex_lock(&v3d->sched_lock);
|
||||
if (exec->bin.start != exec->bin.end) {
|
||||
ret = drm_sched_job_init(&exec->bin.base,
|
||||
&v3d->queue[V3D_BIN].sched,
|
||||
&v3d_priv->sched_entity[V3D_BIN],
|
||||
v3d_priv);
|
||||
if (ret)
|
||||
@@ -568,7 +567,6 @@ v3d_submit_cl_ioctl(struct drm_device *dev, void *data,
|
||||
}
|
||||
|
||||
ret = drm_sched_job_init(&exec->render.base,
|
||||
&v3d->queue[V3D_RENDER].sched,
|
||||
&v3d_priv->sched_entity[V3D_RENDER],
|
||||
v3d_priv);
|
||||
if (ret)
|
||||
|
Reference in New Issue
Block a user