diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-03-30 16:16:51 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-04 19:57:03 -0400 |
commit | c86e940e1169be32e92297f6dfb07d0c2cade135 (patch) | |
tree | 86fc119bc20f6db09eda52ace9a2d76c6bf9ef53 /drivers/gpu/nvgpu/clk | |
parent | e3bd4ae2a59fef37a85fbca168fc479dd5514023 (diff) |
gpu: nvgpu: Remove last Linux kmem usage
Replace the last of the Linux kmem API usage with nvgpu kmem
calls instead. Several places are left alone - allocating the
struct gk20a in particular.
Also one function was updated in the clk code to take a struct
gk20a as an argument so that it could use nvgpu_kmalloc().
Bug 1799159
Bug 1823380
Change-Id: I84fc3f8e19c63d6265bac6098dc727d93e3ff613
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1331702
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/clk')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_arb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_arb.c b/drivers/gpu/nvgpu/clk/clk_arb.c index dc063709..b8be3334 100644 --- a/drivers/gpu/nvgpu/clk/clk_arb.c +++ b/drivers/gpu/nvgpu/clk/clk_arb.c | |||
@@ -472,12 +472,12 @@ void nvgpu_clk_arb_cleanup_arbiter(struct gk20a *g) | |||
472 | destroy_workqueue(arb->update_work_queue); | 472 | destroy_workqueue(arb->update_work_queue); |
473 | arb->update_work_queue = NULL; | 473 | arb->update_work_queue = NULL; |
474 | 474 | ||
475 | kfree(arb->gpc2clk_f_points); | 475 | nvgpu_kfree(g, arb->gpc2clk_f_points); |
476 | kfree(arb->mclk_f_points); | 476 | nvgpu_kfree(g, arb->mclk_f_points); |
477 | 477 | ||
478 | for (index = 0; index < 2; index++) { | 478 | for (index = 0; index < 2; index++) { |
479 | kfree(arb->vf_table_pool[index].gpc2clk_points); | 479 | nvgpu_kfree(g, arb->vf_table_pool[index].gpc2clk_points); |
480 | kfree(arb->vf_table_pool[index].mclk_points); | 480 | nvgpu_kfree(g, arb->vf_table_pool[index].mclk_points); |
481 | } | 481 | } |
482 | } | 482 | } |
483 | 483 | ||