summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index 8014fd8c..6db08a61 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -143,9 +143,8 @@ int gk20a_channel_get_timescale_from_timeslice(struct gk20a *g,
143 int timeslice_period, 143 int timeslice_period,
144 int *__timeslice_timeout, int *__timeslice_scale) 144 int *__timeslice_timeout, int *__timeslice_scale)
145{ 145{
146 struct gk20a_platform *platform = dev_get_drvdata(g->dev);
147 int value = scale_ptimer(timeslice_period, 146 int value = scale_ptimer(timeslice_period,
148 ptimer_scalingfactor10x(platform->ptimer_src_freq)); 147 ptimer_scalingfactor10x(g->ptimer_src_freq));
149 int shift = 0; 148 int shift = 0;
150 149
151 /* value field is 8 bits long */ 150 /* value field is 8 bits long */