mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Move internal channel trace function
Move internal channel trace function to ioctl_channel.c. It's not used anywhere else, so it does not need to be exported outside ioctl_channel.c. JIRA NVGPU-38 Change-Id: If6300781961ffffad4f63bc212d68adf8f3497fc Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1505173 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
c50b02eb66
commit
930b61e6d1
@@ -34,6 +34,24 @@
|
||||
#include "gk20a/fence_gk20a.h"
|
||||
#include "ioctl_channel.h"
|
||||
|
||||
static void gk20a_channel_trace_sched_param(
|
||||
void (*trace)(int chid, int tsgid, pid_t pid, u32 timeslice,
|
||||
u32 timeout, const char *interleave,
|
||||
const char *graphics_preempt_mode,
|
||||
const char *compute_preempt_mode),
|
||||
struct channel_gk20a *ch)
|
||||
{
|
||||
(trace)(ch->hw_chid, ch->tsgid, ch->pid,
|
||||
gk20a_is_channel_marked_as_tsg(ch) ?
|
||||
tsg_gk20a_from_ch(ch)->timeslice_us : ch->timeslice_us,
|
||||
ch->timeout_ms_max,
|
||||
gk20a_fifo_interleave_level_name(ch->interleave_level),
|
||||
gr_gk20a_graphics_preempt_mode_name(ch->ch_ctx.gr_ctx ?
|
||||
ch->ch_ctx.gr_ctx->graphics_preempt_mode : 0),
|
||||
gr_gk20a_compute_preempt_mode_name(ch->ch_ctx.gr_ctx ?
|
||||
ch->ch_ctx.gr_ctx->compute_preempt_mode : 0));
|
||||
}
|
||||
|
||||
/*
|
||||
* Although channels do have pointers back to the gk20a struct that they were
|
||||
* created under in cases where the driver is killed that pointer can be bad.
|
||||
|
||||
Reference in New Issue
Block a user