From 748331cbab1c7af26ab1fbae5ead2cdaff22806a Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 11 Oct 2017 11:51:47 -0700 Subject: gpu: nvgpu: Move preempt query functions Move functions to query preemption type names to the user of the function: ioctl_channel.c. This removes a dependency to from gr_gk20a.h. JIRA NVGPU-259 Change-Id: I6cafda986eb4659fcfc1b19eac77e43aaaeaec76 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1577248 --- drivers/gpu/nvgpu/gk20a/gr_gk20a.h | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index 52b39c4f..6b422138 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h @@ -748,26 +748,4 @@ void gk20a_gr_get_ovr_perf_regs(struct gk20a *g, u32 *num_ovr_perf_regs, void gk20a_gr_init_ctxsw_hdr_data(struct gk20a *g, struct nvgpu_mem *mem); -static inline const char *gr_gk20a_graphics_preempt_mode_name(u32 graphics_preempt_mode) -{ - switch (graphics_preempt_mode) { - case NVGPU_GRAPHICS_PREEMPTION_MODE_WFI: - return "WFI"; - default: - return "?"; - } -} - -static inline const char *gr_gk20a_compute_preempt_mode_name(u32 compute_preempt_mode) -{ - switch (compute_preempt_mode) { - case NVGPU_COMPUTE_PREEMPTION_MODE_WFI: - return "WFI"; - case NVGPU_COMPUTE_PREEMPTION_MODE_CTA: - return "CTA"; - default: - return "?"; - } -} - #endif /*__GR_GK20A_H__*/ -- cgit v1.2.2