summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
diff options
context:
space:
mode:
authorRichard Zhao <rizhao@nvidia.com>2015-11-04 13:00:12 -0500
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-11-12 10:57:00 -0500
commitf25f21c23181740972978b949b338a320698bc1e (patch)
treeba0fa800a49a2bc561447f0cd6599a8f613d26de /drivers/gpu/nvgpu/gk20a/channel_gk20a.c
parentd29c3a2403ec3fa40d6ec2a6ec09c123740242db (diff)
gpu: nvgpu: remove shift initial value 3 when set runlist timeslice
Bug 1695718 Change-Id: I595694e4a92ccaf8b8cd389e215d28709ed98c50 Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: http://git-master/r/827829 (cherry picked from commit be5397109404b632c51a57758ee0dcdd2d2f5cc7) Reviewed-on: http://git-master/r/831556 GVS: Gerrit_Virtual_Submit Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index d750f497..4cf3beec 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -139,7 +139,7 @@ int gk20a_channel_get_timescale_from_timeslice(struct gk20a *g,
139 struct gk20a_platform *platform = platform_get_drvdata(g->dev); 139 struct gk20a_platform *platform = platform_get_drvdata(g->dev);
140 int value = scale_ptimer(timeslice_period, 140 int value = scale_ptimer(timeslice_period,
141 ptimer_scalingfactor10x(platform->ptimer_src_freq)); 141 ptimer_scalingfactor10x(platform->ptimer_src_freq));
142 int shift = 3; 142 int shift = 0;
143 143
144 /* value field is 8 bits long */ 144 /* value field is 8 bits long */
145 while (value >= 1 << 8) { 145 while (value >= 1 << 8) {