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/gp106/pmu_mclk_gp106.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/gp106/pmu_mclk_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/pmu_mclk_gp106.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp106/pmu_mclk_gp106.c b/drivers/gpu/nvgpu/gp106/pmu_mclk_gp106.c index b8dd3eac..c0e4269f 100644 --- a/drivers/gpu/nvgpu/gp106/pmu_mclk_gp106.c +++ b/drivers/gpu/nvgpu/gp106/pmu_mclk_gp106.c | |||
@@ -3276,7 +3276,6 @@ int gp106_mclk_init(struct gk20a *g) | |||
3276 | mclk->debugfs_set = true; | 3276 | mclk->debugfs_set = true; |
3277 | } | 3277 | } |
3278 | #endif | 3278 | #endif |
3279 | g->ops.pmu.mclk_change = gp106_mclk_change; | ||
3280 | 3279 | ||
3281 | mclk->init = true; | 3280 | mclk->init = true; |
3282 | 3281 | ||
@@ -3437,8 +3436,8 @@ static int mclk_debug_speed_set(void *data, u64 val) | |||
3437 | /* This is problematic because it can interrupt the arbiter | 3436 | /* This is problematic because it can interrupt the arbiter |
3438 | * and send it to sleep. we need to consider removing this | 3437 | * and send it to sleep. we need to consider removing this |
3439 | */ | 3438 | */ |
3440 | if (g->ops.pmu.mclk_change) | 3439 | if (g->ops.clk.mclk_change) |
3441 | return g->ops.pmu.mclk_change(g, (u16) val); | 3440 | return g->ops.clk.mclk_change(g, (u16) val); |
3442 | return 0; | 3441 | return 0; |
3443 | 3442 | ||
3444 | } | 3443 | } |