diff --git a/drivers/gpu/nvgpu/common/fifo/tsg.c b/drivers/gpu/nvgpu/common/fifo/tsg.c index 46c0a4df8..fb51e2097 100644 --- a/drivers/gpu/nvgpu/common/fifo/tsg.c +++ b/drivers/gpu/nvgpu/common/fifo/tsg.c @@ -70,24 +70,6 @@ struct nvgpu_tsg *nvgpu_tsg_get_from_id(struct gk20a *g, u32 tsgid) return &f->tsg[tsgid]; } - -static bool nvgpu_tsg_is_channel_active(struct gk20a *g, - struct nvgpu_channel *ch) -{ - struct nvgpu_fifo *f = &g->fifo; - struct nvgpu_runlist *runlist; - unsigned int i; - - for (i = 0; i < f->num_runlists; ++i) { - runlist = &f->active_runlists[i]; - if (nvgpu_test_bit(ch->chid, runlist->domain->active_channels)) { - return true; - } - } - - return false; -} - /* * API to mark channel as part of TSG * @@ -106,11 +88,6 @@ int nvgpu_tsg_bind_channel(struct nvgpu_tsg *tsg, struct nvgpu_channel *ch) return -EINVAL; } - /* channel cannot be bound to TSG if it is already active */ - if (nvgpu_tsg_is_channel_active(tsg->g, ch)) { - return -EINVAL; - } - /* cannot bind more channels than MAX channels supported per TSG */ nvgpu_rwsem_down_read(&tsg->ch_list_lock); max_ch_per_tsg = g->ops.runlist.get_max_channels_per_tsg();