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/therm/thrmdev.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/therm/thrmdev.c')
-rw-r--r-- | drivers/gpu/nvgpu/therm/thrmdev.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/therm/thrmdev.c b/drivers/gpu/nvgpu/therm/thrmdev.c index 1aff119c..7371ba25 100644 --- a/drivers/gpu/nvgpu/therm/thrmdev.c +++ b/drivers/gpu/nvgpu/therm/thrmdev.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"), |
@@ -41,7 +41,7 @@ static struct boardobj *construct_therm_device(struct gk20a *g, | |||
41 | if (status) | 41 | if (status) |
42 | return NULL; | 42 | return NULL; |
43 | 43 | ||
44 | gk20a_dbg_info(" Done"); | 44 | nvgpu_log_info(g, " Done"); |
45 | 45 | ||
46 | return board_obj_ptr; | 46 | return board_obj_ptr; |
47 | } | 47 | } |
@@ -55,7 +55,7 @@ static u32 _therm_device_pmudata_instget(struct gk20a *g, | |||
55 | (struct nv_pmu_therm_therm_device_boardobj_grp_set *) | 55 | (struct nv_pmu_therm_therm_device_boardobj_grp_set *) |
56 | pmuboardobjgrp; | 56 | pmuboardobjgrp; |
57 | 57 | ||
58 | gk20a_dbg_info(""); | 58 | nvgpu_log_info(g, " "); |
59 | 59 | ||
60 | /*check whether pmuboardobjgrp has a valid boardobj in index*/ | 60 | /*check whether pmuboardobjgrp has a valid boardobj in index*/ |
61 | if (((u32)BIT(idx) & | 61 | if (((u32)BIT(idx) & |
@@ -65,7 +65,7 @@ static u32 _therm_device_pmudata_instget(struct gk20a *g, | |||
65 | *ppboardobjpmudata = (struct nv_pmu_boardobj *) | 65 | *ppboardobjpmudata = (struct nv_pmu_boardobj *) |
66 | &pgrp_set->objects[idx].data; | 66 | &pgrp_set->objects[idx].data; |
67 | 67 | ||
68 | gk20a_dbg_info(" Done"); | 68 | nvgpu_log_info(g, " Done"); |
69 | 69 | ||
70 | return 0; | 70 | return 0; |
71 | } | 71 | } |
@@ -87,7 +87,7 @@ static u32 devinit_get_therm_device_table(struct gk20a *g, | |||
87 | struct therm_device therm_device; | 87 | struct therm_device therm_device; |
88 | } therm_device_data; | 88 | } therm_device_data; |
89 | 89 | ||
90 | gk20a_dbg_info(""); | 90 | nvgpu_log_info(g, " "); |
91 | 91 | ||
92 | therm_device_table_ptr = (u8 *)nvgpu_bios_get_perf_table_ptrs(g, | 92 | therm_device_table_ptr = (u8 *)nvgpu_bios_get_perf_table_ptrs(g, |
93 | g->bios.perf_token, THERMAL_DEVICE_TABLE); | 93 | g->bios.perf_token, THERMAL_DEVICE_TABLE); |
@@ -153,7 +153,7 @@ static u32 devinit_get_therm_device_table(struct gk20a *g, | |||
153 | } | 153 | } |
154 | 154 | ||
155 | done: | 155 | done: |
156 | gk20a_dbg_info(" done status %x", status); | 156 | nvgpu_log_info(g, " done status %x", status); |
157 | return status; | 157 | return status; |
158 | } | 158 | } |
159 | 159 | ||
@@ -195,6 +195,6 @@ u32 therm_device_sw_setup(struct gk20a *g) | |||
195 | } | 195 | } |
196 | 196 | ||
197 | done: | 197 | done: |
198 | gk20a_dbg_info(" done status %x", status); | 198 | nvgpu_log_info(g, " done status %x", status); |
199 | return status; | 199 | return status; |
200 | } | 200 | } |