From c50b02eb66a7d45612f34236e14b7b7117ae398d Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 19 Jun 2017 11:05:24 -0700 Subject: gpu: nvgpu: Move tsg_gk20a_from_ch to tsg_gk20a.c The function tsg_gk20a_from_ch() is an operation on tsg_gk20a structure, so move it to be part of tsg_gk20a.c and export via tsg_gk20a.h. JIRA NVGPU-38 Change-Id: I2afba3533ac829088a5edf8b16cf4e071b69b77a Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1505172 Reviewed-by: Alex Waterman Reviewed-by: Deepak Nibade Reviewed-by: Konsta Holtta GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/gk20a/gk20a.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 11490c27..5039f8e3 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -1541,20 +1541,6 @@ extern struct class nvgpu_class; int gk20a_prepare_poweroff(struct gk20a *g); int gk20a_finalize_poweron(struct gk20a *g); -static inline struct tsg_gk20a *tsg_gk20a_from_ch(struct channel_gk20a *ch) -{ - struct tsg_gk20a *tsg = NULL; - - if (gk20a_is_channel_marked_as_tsg(ch)) - { - struct gk20a *g = ch->g; - struct fifo_gk20a *f = &g->fifo; - tsg = &f->tsg[ch->tsgid]; - } - - return tsg; -} - static inline void gk20a_channel_trace_sched_param( void (*trace)(int chid, int tsgid, pid_t pid, u32 timeslice, u32 timeout, const char *interleave, -- cgit v1.2.2