diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-05-01 13:41:13 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-03 15:16:29 -0400 |
commit | d7361d4d4cb63822ebd455980d17ab245a0d6cad (patch) | |
tree | 280d21c2b24f48cc237efaa4199bfbae446c3a83 /drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |
parent | e2148ead8bbf51c2dbf9e2b501c989f2c27582a0 (diff) |
gpu: nvgpu: Access ptimer_src_freq from struct gk20a
Fix the last place where ptimer_src_freq is accessed directly
from platform structure.
JIRA NVGPU-16
Change-Id: I41b924779e1e639bf585cd96cb8c11de6eeb18bb
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1473704
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 3 |
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 */ |