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/thrmchannel.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/thrmchannel.c')
-rw-r--r-- | drivers/gpu/nvgpu/therm/thrmchannel.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/therm/thrmchannel.c b/drivers/gpu/nvgpu/therm/thrmchannel.c index f8be8430..de3de62a 100644 --- a/drivers/gpu/nvgpu/therm/thrmchannel.c +++ b/drivers/gpu/nvgpu/therm/thrmchannel.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"), |
@@ -90,7 +90,7 @@ static struct boardobj *construct_channel_device(struct gk20a *g, | |||
90 | pchannel_device->therm_dev_idx = therm_device->therm_dev_idx; | 90 | pchannel_device->therm_dev_idx = therm_device->therm_dev_idx; |
91 | pchannel_device->therm_dev_prov_idx = therm_device->therm_dev_prov_idx; | 91 | pchannel_device->therm_dev_prov_idx = therm_device->therm_dev_prov_idx; |
92 | 92 | ||
93 | gk20a_dbg_info(" Done"); | 93 | nvgpu_log_info(g, " Done"); |
94 | 94 | ||
95 | return board_obj_ptr; | 95 | return board_obj_ptr; |
96 | } | 96 | } |
@@ -104,7 +104,7 @@ static u32 _therm_channel_pmudata_instget(struct gk20a *g, | |||
104 | (struct nv_pmu_therm_therm_channel_boardobj_grp_set *) | 104 | (struct nv_pmu_therm_therm_channel_boardobj_grp_set *) |
105 | pmuboardobjgrp; | 105 | pmuboardobjgrp; |
106 | 106 | ||
107 | gk20a_dbg_info(""); | 107 | nvgpu_log_info(g, " "); |
108 | 108 | ||
109 | /*check whether pmuboardobjgrp has a valid boardobj in index*/ | 109 | /*check whether pmuboardobjgrp has a valid boardobj in index*/ |
110 | if (((u32)BIT(idx) & | 110 | if (((u32)BIT(idx) & |
@@ -114,7 +114,7 @@ static u32 _therm_channel_pmudata_instget(struct gk20a *g, | |||
114 | *ppboardobjpmudata = (struct nv_pmu_boardobj *) | 114 | *ppboardobjpmudata = (struct nv_pmu_boardobj *) |
115 | &pgrp_set->objects[idx].data.board_obj; | 115 | &pgrp_set->objects[idx].data.board_obj; |
116 | 116 | ||
117 | gk20a_dbg_info(" Done"); | 117 | nvgpu_log_info(g, " Done"); |
118 | 118 | ||
119 | return 0; | 119 | return 0; |
120 | } | 120 | } |
@@ -137,7 +137,7 @@ static u32 devinit_get_therm_channel_table(struct gk20a *g, | |||
137 | struct therm_channel_device device; | 137 | struct therm_channel_device device; |
138 | } therm_channel_data; | 138 | } therm_channel_data; |
139 | 139 | ||
140 | gk20a_dbg_info(""); | 140 | nvgpu_log_info(g, " "); |
141 | 141 | ||
142 | therm_channel_table_ptr = (u8 *)nvgpu_bios_get_perf_table_ptrs(g, | 142 | therm_channel_table_ptr = (u8 *)nvgpu_bios_get_perf_table_ptrs(g, |
143 | g->bios.perf_token, THERMAL_CHANNEL_TABLE); | 143 | g->bios.perf_token, THERMAL_CHANNEL_TABLE); |
@@ -206,7 +206,7 @@ static u32 devinit_get_therm_channel_table(struct gk20a *g, | |||
206 | } | 206 | } |
207 | 207 | ||
208 | done: | 208 | done: |
209 | gk20a_dbg_info(" done status %x", status); | 209 | nvgpu_log_info(g, " done status %x", status); |
210 | return status; | 210 | return status; |
211 | } | 211 | } |
212 | 212 | ||
@@ -248,6 +248,6 @@ u32 therm_channel_sw_setup(struct gk20a *g) | |||
248 | } | 248 | } |
249 | 249 | ||
250 | done: | 250 | done: |
251 | gk20a_dbg_info(" done status %x", status); | 251 | nvgpu_log_info(g, " done status %x", status); |
252 | return status; | 252 | return status; |
253 | } | 253 | } |