summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index 3fe119d7..16d4711f 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -126,12 +126,12 @@ int channel_gk20a_commit_va(struct channel_gk20a *c)
126} 126}
127 127
128int gk20a_channel_get_timescale_from_timeslice(struct gk20a *g, 128int gk20a_channel_get_timescale_from_timeslice(struct gk20a *g,
129 int timeslice_period, 129 unsigned int timeslice_period,
130 int *__timeslice_timeout, int *__timeslice_scale) 130 unsigned int *__timeslice_timeout, unsigned int *__timeslice_scale)
131{ 131{
132 int value = scale_ptimer(timeslice_period, 132 unsigned int value = scale_ptimer(timeslice_period,
133 ptimer_scalingfactor10x(g->ptimer_src_freq)); 133 ptimer_scalingfactor10x(g->ptimer_src_freq));
134 int shift = 0; 134 unsigned int shift = 0;
135 135
136 /* value field is 8 bits long */ 136 /* value field is 8 bits long */
137 while (value >= 1 << 8) { 137 while (value >= 1 << 8) {