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>
This commit is contained in:
Alex Waterman
2017-03-30 21:16:51 +01:00
committed by mobile promotions
parent e3bd4ae2a5
commit c86e940e11
13 changed files with 32 additions and 29 deletions

View File

@@ -712,7 +712,7 @@ static int gk20a_channel_event_id_enable(struct channel_gk20a *ch,
return 0;
clean_up_free:
kfree(event_id_data);
nvgpu_kfree(g, event_id_data);
clean_up_file:
fput(file);
clean_up:

View File

@@ -161,7 +161,7 @@ static int gk20a_tsg_event_id_enable(struct tsg_gk20a *tsg,
return 0;
clean_up_free:
kfree(event_id_data);
nvgpu_kfree(g, event_id_data);
clean_up_file:
fput(file);
clean_up: