summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-02-02 13:43:56 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-16 14:48:24 -0400
commit2821eb31e2363bcaf81266b52967c15827ecee04 (patch)
treee2bedbb520306781bb33282c595ccc02ca936953 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent886016190c804743da83f9e0db3366fef9720d0a (diff)
gpu: nvgpu: Rename clk->get_rate to measure_freq
get_rate is already used for call-back that queries the last set clock rate. This instance of get_rate actually measures the frequency so renaming it to measure_freq. At the same time modify to use hertz instead of megahertz. We use fractional megahertz already in GPU. Change-Id: I387473d6a6cbf3bb9b9e5a909677a1a725403c32 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1300111 Reviewed-by: Alex Waterman <alexw@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 092bf7ae..5a4eaf39 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -690,7 +690,7 @@ struct gpu_ops {
690 int (*init_clk_support)(struct gk20a *g); 690 int (*init_clk_support)(struct gk20a *g);
691 int (*suspend_clk_support)(struct gk20a *g); 691 int (*suspend_clk_support)(struct gk20a *g);
692 u32 (*get_crystal_clk_hz)(struct gk20a *g); 692 u32 (*get_crystal_clk_hz)(struct gk20a *g);
693 u16 (*get_rate)(struct gk20a *g, u32 api_domain); 693 unsigned long (*measure_freq)(struct gk20a *g, u32 api_domain);
694 } clk; 694 } clk;
695 struct { 695 struct {
696 u32 (*get_arbiter_clk_domains)(struct gk20a *g); 696 u32 (*get_arbiter_clk_domains)(struct gk20a *g);