diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-03-08 19:52:11 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-26 12:55:10 -0400 |
commit | f403208306c100f16daf8577b585528124f9f004 (patch) | |
tree | 6d5b70d7c01ecb74aea66bcf2798c1be0a491ff2 /drivers/gpu/nvgpu/clk/clk_mclk.c | |
parent | c11228d48be1825e1ec84afd38c6938504fa4100 (diff) |
gpu: nvgpu: Use new kmem API functions (clk/*)
Use the new kmem API functions in clk/*. Also add a struct gk20a
pointer to the following functions:
nvgpu_clk_notification_queue_alloc()
nvgpu_clk_notification_queue_free()
Bug 1799159
Bug 1823380
Change-Id: I7eb67dc443c0bbe0d3f67dac7bf363da60e1051c
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1318316
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_mclk.c')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_mclk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_mclk.c b/drivers/gpu/nvgpu/clk/clk_mclk.c index e5452051..16852b5e 100644 --- a/drivers/gpu/nvgpu/clk/clk_mclk.c +++ b/drivers/gpu/nvgpu/clk/clk_mclk.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/delay.h> | 14 | #include <linux/delay.h> |
15 | 15 | ||
16 | #include <nvgpu/bios.h> | 16 | #include <nvgpu/bios.h> |
17 | #include <nvgpu/kmem.h> | ||
17 | 18 | ||
18 | #include "gk20a/gk20a.h" | 19 | #include "gk20a/gk20a.h" |
19 | #include "gk20a/pmu_gk20a.h" | 20 | #include "gk20a/pmu_gk20a.h" |
@@ -2216,8 +2217,7 @@ int clk_mclkseq_init_mclk_gddr5(struct gk20a *g) | |||
2216 | mclk->p0_min = p0_info->min_mhz; | 2217 | mclk->p0_min = p0_info->min_mhz; |
2217 | 2218 | ||
2218 | 2219 | ||
2219 | mclk->vreg_buf = kcalloc(VREG_COUNT, | 2220 | mclk->vreg_buf = nvgpu_kcalloc(g, VREG_COUNT, sizeof(u32)); |
2220 | sizeof(u32), GFP_KERNEL); | ||
2221 | if (!mclk->vreg_buf) { | 2221 | if (!mclk->vreg_buf) { |
2222 | gk20a_err(dev_from_gk20a(g), | 2222 | gk20a_err(dev_from_gk20a(g), |
2223 | "unable to allocate memory for VREG"); | 2223 | "unable to allocate memory for VREG"); |