diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2017-06-21 14:13:22 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-30 11:46:34 -0400 |
commit | c12eb17340c90086f378c239da3d9015e7878f0c (patch) | |
tree | de0d8d3886bbc11e4b8524bda0d35de3e4e8638d /drivers/gpu/nvgpu/clk/clk_arb.c | |
parent | a89c3876c71f486cf5d5bca588f12af02d1b15be (diff) |
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>
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_arb.c')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_arb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_arb.c b/drivers/gpu/nvgpu/clk/clk_arb.c index 58d529c6..df62df5e 100644 --- a/drivers/gpu/nvgpu/clk/clk_arb.c +++ b/drivers/gpu/nvgpu/clk/clk_arb.c | |||
@@ -1989,7 +1989,7 @@ static int nvgpu_clk_arb_change_vf_point(struct gk20a *g, u16 gpc2clk_target, | |||
1989 | 1989 | ||
1990 | /* descending */ | 1990 | /* descending */ |
1991 | if (voltuv < arb->voltuv_actual) { | 1991 | if (voltuv < arb->voltuv_actual) { |
1992 | status = g->ops.pmu.mclk_change(g, mclk_target); | 1992 | status = g->ops.clk.mclk_change(g, mclk_target); |
1993 | if (status < 0) | 1993 | if (status < 0) |
1994 | return status; | 1994 | return status; |
1995 | 1995 | ||
@@ -2009,7 +2009,7 @@ static int nvgpu_clk_arb_change_vf_point(struct gk20a *g, u16 gpc2clk_target, | |||
2009 | if (status < 0) | 2009 | if (status < 0) |
2010 | return status; | 2010 | return status; |
2011 | 2011 | ||
2012 | status = g->ops.pmu.mclk_change(g, mclk_target); | 2012 | status = g->ops.clk.mclk_change(g, mclk_target); |
2013 | if (status < 0) | 2013 | if (status < 0) |
2014 | return status; | 2014 | return status; |
2015 | } | 2015 | } |