summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a
diff options
context:
space:
mode:
authorDavid Nieto <dmartineznie@nvidia.com>2016-10-12 18:00:16 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-12-09 23:24:10 -0500
commit866dafa484414f8ee540696d5df7617fdb4b1fc9 (patch)
treef06d2d757ff6d5f5a4e4c3bbd70921af806c78ab /drivers/gpu/nvgpu/gk20a
parent5319bb45599550407df868a4325380770d028951 (diff)
gpu: nvgpu: read effective frequency from counter
JIRA DNVGPU-164 Adding export functions to gk20a and gk20a_clk structure Change-Id: Ia448f17a6c456139544c1d36a3e17ceec0edd2f6 Signed-off-by: David Nieto <dmartineznie@nvidia.com> Reviewed-on: http://git-master/r/1239465 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1268000 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r--drivers/gpu/nvgpu/gk20a/clk_gk20a.h3
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h
index 8400b8ba..a45dfcb7 100644
--- a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2011 - 2014, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2011 - 2016, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -89,6 +89,7 @@ struct clk_gk20a {
89 struct mutex clk_mutex; 89 struct mutex clk_mutex;
90 struct namemap_cfg *clk_namemap; 90 struct namemap_cfg *clk_namemap;
91 u32 namemap_num; 91 u32 namemap_num;
92 u32 *namemap_xlat_table;
92 bool sw_ready; 93 bool sw_ready;
93 bool clk_hw_on; 94 bool clk_hw_on;
94 bool debugfs_set; 95 bool debugfs_set;
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 071111ab..49c2a348 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -633,6 +633,7 @@ struct gpu_ops {
633 int (*init_clk_support)(struct gk20a *g); 633 int (*init_clk_support)(struct gk20a *g);
634 int (*suspend_clk_support)(struct gk20a *g); 634 int (*suspend_clk_support)(struct gk20a *g);
635 u32 (*get_crystal_clk_hz)(struct gk20a *g); 635 u32 (*get_crystal_clk_hz)(struct gk20a *g);
636 u16 (*get_rate)(struct gk20a *g, u32 api_domain);
636 } clk; 637 } clk;
637 struct { 638 struct {
638 u32 (*get_arbiter_clk_domains)(struct gk20a *g); 639 u32 (*get_arbiter_clk_domains)(struct gk20a *g);