summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/debug_fifo.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-11-28 18:16:06 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-12-11 11:31:36 -0500
commit796c1a9ac892c6cf563f55608e3b66f753228847 (patch)
tree94bf574cd7180c5cb5231613e6aca6982b2e05a8 /drivers/gpu/nvgpu/common/linux/debug_fifo.c
parent5463b04f509c46131a729b62f0c0102fb7830b56 (diff)
gpu: nvgpu: Use nvgpu_vzalloc() instead of vzalloc()
debug_fifo.c uses vzalloc(), but frees the allocation with nvgpu_vfree(). Change the vzalloc() into nvgpu_vzalloc() for consistency. Change-Id: I86facf81752def3dd10fd0cf4cd30e652099f8a5 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1612647 GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/debug_fifo.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/debug_fifo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/debug_fifo.c b/drivers/gpu/nvgpu/common/linux/debug_fifo.c
index 59198718..94a16b70 100644
--- a/drivers/gpu/nvgpu/common/linux/debug_fifo.c
+++ b/drivers/gpu/nvgpu/common/linux/debug_fifo.c
@@ -154,12 +154,12 @@ static int gk20a_fifo_profile_enable(void *data, u64 val)
154 * we enable/disable/enable while kickoff is happening 154 * we enable/disable/enable while kickoff is happening
155 */ 155 */
156 if (!nvgpu_ref_get_unless_zero(&f->profile.ref)) { 156 if (!nvgpu_ref_get_unless_zero(&f->profile.ref)) {
157 f->profile.data = vzalloc( 157 f->profile.data = nvgpu_vzalloc(g,
158 FIFO_PROFILING_ENTRIES * 158 FIFO_PROFILING_ENTRIES *
159 sizeof(struct fifo_profile_gk20a)); 159 sizeof(struct fifo_profile_gk20a));
160 f->profile.sorted = vzalloc( 160 f->profile.sorted = nvgpu_vzalloc(g,
161 FIFO_PROFILING_ENTRIES * 161 FIFO_PROFILING_ENTRIES *
162 sizeof(u64)); 162 sizeof(u64));
163 if (!(f->profile.data && f->profile.sorted)) { 163 if (!(f->profile.data && f->profile.sorted)) {
164 nvgpu_vfree(g, f->profile.data); 164 nvgpu_vfree(g, f->profile.data);
165 nvgpu_vfree(g, f->profile.sorted); 165 nvgpu_vfree(g, f->profile.sorted);