diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/debug_fifo.c | 10 |
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); |