summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
diff options
context:
space:
mode:
authorSeshendra Gadagottu <sgadagottu@nvidia.com>2015-10-16 15:31:35 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-11-04 17:38:34 -0500
commit19b3bd28b3e277d8892f663e7c61a813dbc54feb (patch)
tree5bd76a4242a9f09b7ba3cbf9ab1eb3f5990875c7 /drivers/gpu/nvgpu/gk20a/platform_gk20a.h
parent9592a4e6fce8204e9ada54ba00902e792199fec5 (diff)
gpu: nvgpu: use platform data for ptimer source rate
Instead of depending on clock frame-work, use platform data for ptimer source rate. Removed ptimerscaling10x platform data, and use ptimer source frequency to calculate ptimerscaling factor. Reviewed-on: http://git-master/r/819030 (cherry picked from commit dd291334d54dab80cab7eb1656dffc48a59610b4) Change-Id: I7638ce9875a6e440bbfc2ba2da0d0b094b2700ff Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/827300 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/platform_gk20a.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
index 0c3c6ff3..c1444985 100644
--- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
@@ -97,9 +97,6 @@ struct gk20a_platform {
97 /* Default big page size 64K or 128K */ 97 /* Default big page size 64K or 128K */
98 u32 default_big_page_size; 98 u32 default_big_page_size;
99 99
100 /* scaling factor for ptimer */
101 u32 ptimerscaling10x;
102
103 /* Initialize the platform interface of the gk20a driver. 100 /* Initialize the platform interface of the gk20a driver.
104 * 101 *
105 * The platform implementation of this function must 102 * The platform implementation of this function must
@@ -191,6 +188,8 @@ struct gk20a_platform {
191 u64 virt_handle; 188 u64 virt_handle;
192 struct task_struct *intr_handler; 189 struct task_struct *intr_handler;
193#endif 190#endif
191 /* source frequency for ptimer in hz */
192 u32 ptimer_src_freq;
194 193
195 bool has_cde; 194 bool has_cde;
196}; 195};