diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-11-10 13:53:51 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-14 18:46:58 -0500 |
commit | 744d5a5212936fd453bacc46be52e6aeef076a69 (patch) | |
tree | 50f99f03f549241c6cf47702075449feb8d70ec5 /drivers/gpu/nvgpu/gm20b/clk_gm20b.c | |
parent | 5944f49f558370966d1ab943b2ec91afcdfd782d (diff) |
gpu: nvgpu: vgpu: Implement clk.get_maxfreq
Modify HAL clk->get_maxfreq() signature to match the one in
clk->set_rate() and clk->get_rate(). It allows support of multiple
clocks.
Implement clk.get_maxfreq operation for vgpu and use it to
fill max_freq field in GPU characteristics query.
JIRA NVGPU-388
Change-Id: I93bfc2aa76e38b8a5e0ac55d87c4e26df6fea77f
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1597329
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/clk_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/clk_gm20b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c index a74209cf..61d3b6f5 100644 --- a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c | |||
@@ -1273,7 +1273,7 @@ long gm20b_round_rate(struct clk_gk20a *clk, unsigned long rate, | |||
1273 | unsigned long maxrate; | 1273 | unsigned long maxrate; |
1274 | struct gk20a *g = clk->g; | 1274 | struct gk20a *g = clk->g; |
1275 | 1275 | ||
1276 | maxrate = g->ops.clk.get_maxrate(clk); | 1276 | maxrate = g->ops.clk.get_maxrate(g, CTRL_CLK_DOMAIN_GPCCLK); |
1277 | if (rate > maxrate) | 1277 | if (rate > maxrate) |
1278 | rate = maxrate; | 1278 | rate = maxrate; |
1279 | 1279 | ||