diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-03-08 19:52:26 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-26 12:55:10 -0400 |
commit | f01c36986e22de0f4a049bf6897dd276b17a18ba (patch) | |
tree | 2aad915347ee4312027d10c79625756ec997676d /drivers/gpu/nvgpu/boardobj/boardobj.h | |
parent | f403208306c100f16daf8577b585528124f9f004 (diff) |
gpu: nvgpu: Use new kmem API functions (boardobj/*)
Use the new kmem API functions in boardobj/*. Add a struct gk20a
pointer to the boardobj struct to provide the necessary gk20a pointer
for freeing the boardobj.
Bug 1799159
Bug 1823380
Change-Id: I62d93681bed2671f19435ad64343a44791a1d766
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1318317
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/boardobj/boardobj.h')
-rw-r--r-- | drivers/gpu/nvgpu/boardobj/boardobj.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/boardobj/boardobj.h b/drivers/gpu/nvgpu/boardobj/boardobj.h index 138b3acc..16dbf6b4 100644 --- a/drivers/gpu/nvgpu/boardobj/boardobj.h +++ b/drivers/gpu/nvgpu/boardobj/boardobj.h | |||
@@ -60,6 +60,8 @@ typedef u32 boardobj_destruct(struct boardobj *pboardobj); | |||
60 | */ | 60 | */ |
61 | 61 | ||
62 | struct boardobj { | 62 | struct boardobj { |
63 | struct gk20a *g; | ||
64 | |||
63 | u8 type; /*type of the device*/ | 65 | u8 type; /*type of the device*/ |
64 | u8 idx; /*index of boardobj within in its group*/ | 66 | u8 idx; /*index of boardobj within in its group*/ |
65 | u32 type_mask; /*mask of types this boardobjimplements*/ | 67 | u32 type_mask; /*mask of types this boardobjimplements*/ |