diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-04-18 22:39:46 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-09 21:26:04 -0400 |
commit | dd739fcb039d51606e9a5454ec0aab17bcb01965 (patch) | |
tree | 806ba8575d146367ad1be00086ca0cdae35a6b28 /drivers/gpu/nvgpu/boardobj/boardobj.c | |
parent | 7e66f2a63d4855e763fa768047dfc32f6f96b771 (diff) |
gpu: nvgpu: Remove gk20a_dbg* functions
Switch all logging to nvgpu_log*(). gk20a_dbg* macros are
intentionally left there because of use from other repositories.
Because the new functions do not work without a pointer to struct
gk20a, and piping it just for logging is excessive, some log messages
are deleted.
Change-Id: I00e22e75fe4596a330bb0282ab4774b3639ee31e
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1704148
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/boardobj/boardobj.c')
-rw-r--r-- | drivers/gpu/nvgpu/boardobj/boardobj.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/boardobj/boardobj.c b/drivers/gpu/nvgpu/boardobj/boardobj.c index f9be6981..f38c7c4a 100644 --- a/drivers/gpu/nvgpu/boardobj/boardobj.c +++ b/drivers/gpu/nvgpu/boardobj/boardobj.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -32,7 +32,7 @@ u32 boardobj_construct_super(struct gk20a *g, struct boardobj **ppboardobj, | |||
32 | struct boardobj *pboardobj = NULL; | 32 | struct boardobj *pboardobj = NULL; |
33 | struct boardobj *devtmp = (struct boardobj *)args; | 33 | struct boardobj *devtmp = (struct boardobj *)args; |
34 | 34 | ||
35 | gk20a_dbg_info(" "); | 35 | nvgpu_log_info(g, " "); |
36 | 36 | ||
37 | if (devtmp == NULL) | 37 | if (devtmp == NULL) |
38 | return -EINVAL; | 38 | return -EINVAL; |
@@ -61,7 +61,9 @@ u32 boardobj_construct_super(struct gk20a *g, struct boardobj **ppboardobj, | |||
61 | 61 | ||
62 | u32 boardobj_destruct_super(struct boardobj *pboardobj) | 62 | u32 boardobj_destruct_super(struct boardobj *pboardobj) |
63 | { | 63 | { |
64 | gk20a_dbg_info(""); | 64 | struct gk20a *g = pboardobj->g; |
65 | |||
66 | nvgpu_log_info(g, " "); | ||
65 | if (pboardobj == NULL) | 67 | if (pboardobj == NULL) |
66 | return -EINVAL; | 68 | return -EINVAL; |
67 | 69 | ||
@@ -75,7 +77,7 @@ u32 boardobj_destruct_super(struct boardobj *pboardobj) | |||
75 | bool boardobj_implements_super(struct gk20a *g, struct boardobj *pboardobj, | 77 | bool boardobj_implements_super(struct gk20a *g, struct boardobj *pboardobj, |
76 | u8 type) | 78 | u8 type) |
77 | { | 79 | { |
78 | gk20a_dbg_info(""); | 80 | nvgpu_log_info(g, " "); |
79 | 81 | ||
80 | return (0 != (pboardobj->type_mask & BIT(type))); | 82 | return (0 != (pboardobj->type_mask & BIT(type))); |
81 | } | 83 | } |
@@ -83,12 +85,12 @@ bool boardobj_implements_super(struct gk20a *g, struct boardobj *pboardobj, | |||
83 | u32 boardobj_pmudatainit_super(struct gk20a *g, struct boardobj *pboardobj, | 85 | u32 boardobj_pmudatainit_super(struct gk20a *g, struct boardobj *pboardobj, |
84 | struct nv_pmu_boardobj *pmudata) | 86 | struct nv_pmu_boardobj *pmudata) |
85 | { | 87 | { |
86 | gk20a_dbg_info(""); | 88 | nvgpu_log_info(g, " "); |
87 | if (pboardobj == NULL) | 89 | if (pboardobj == NULL) |
88 | return -EINVAL; | 90 | return -EINVAL; |
89 | if (pmudata == NULL) | 91 | if (pmudata == NULL) |
90 | return -EINVAL; | 92 | return -EINVAL; |
91 | pmudata->type = pboardobj->type; | 93 | pmudata->type = pboardobj->type; |
92 | gk20a_dbg_info(" Done"); | 94 | nvgpu_log_info(g, " Done"); |
93 | return 0; | 95 | return 0; |
94 | } | 96 | } |