gpu: nvgpu: move mclk related functions to clk

Move mclk related functions be moved to clk structure instead of
pmu. We want to keep pmu only for basic pmu interaction and
split clk, lpwr etc.

Bug 1921094

Change-Id: I32394bc0e6d3657dfbd34dbcf19c9af56c12e194
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master/r/1506586
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Thomas Fleury
2017-06-21 11:13:22 -07:00
committed by mobile promotions
parent a89c3876c7
commit c12eb17340
6 changed files with 16 additions and 16 deletions

View File

@@ -1989,7 +1989,7 @@ static int nvgpu_clk_arb_change_vf_point(struct gk20a *g, u16 gpc2clk_target,
/* descending */
if (voltuv < arb->voltuv_actual) {
status = g->ops.pmu.mclk_change(g, mclk_target);
status = g->ops.clk.mclk_change(g, mclk_target);
if (status < 0)
return status;
@@ -2009,7 +2009,7 @@ static int nvgpu_clk_arb_change_vf_point(struct gk20a *g, u16 gpc2clk_target,
if (status < 0)
return status;
status = g->ops.pmu.mclk_change(g, mclk_target);
status = g->ops.clk.mclk_change(g, mclk_target);
if (status < 0)
return status;
}