From 76993ba18c6969cd26bb500eee4ecf734deb7bcb Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Mon, 4 Aug 2014 16:58:56 +0530 Subject: gpu: nvgpu: rework TSG's channel list Modify TSG's channel list as "ch_list" for all channels instead of "ch_runnable_list" for only runnable list We can traverse this list and check runnable status of channel in active_channels to get runnable channels Remove below APIs as they are no longer required : gk20a_bind_runnable_channel_to_tsg() gk20a_unbind_channel_from_tsg() While closing the channel, call gk20a_tsg_unbind_channel() to unbind the channel from TSG bug 1470692 Change-Id: I0178fa74b3e8bb4e5c0b3e3b2b2f031491761ba7 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/449227 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/tsg_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h index 63113b60..dd8679be 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h @@ -27,8 +27,7 @@ long gk20a_tsg_dev_ioctl(struct file *filp, int gk20a_init_tsg_support(struct gk20a *g, u32 tsgid); -int gk20a_bind_runnable_channel_to_tsg(struct channel_gk20a *ch, int tsgid); -int gk20a_unbind_channel_from_tsg(struct channel_gk20a *ch, int tsgid); +int gk20a_tsg_unbind_channel(struct channel_gk20a *ch); struct tsg_gk20a { struct gk20a *g; @@ -36,8 +35,8 @@ struct tsg_gk20a { bool in_use; int tsgid; - struct list_head ch_runnable_list; - int num_runnable_channels; + struct list_head ch_list; + int num_active_channels; struct mutex ch_list_lock; struct gr_ctx_desc *tsg_gr_ctx; -- cgit v1.2.2