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/gk20a/therm_gk20a.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/gk20a/therm_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/therm_gk20a.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/therm_gk20a.c b/drivers/gpu/nvgpu/gk20a/therm_gk20a.c index de5d0f78..b08f3e0a 100644 --- a/drivers/gpu/nvgpu/gk20a/therm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/therm_gk20a.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GK20A Therm | 2 | * GK20A Therm |
3 | * | 3 | * |
4 | * Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * Permission is hereby granted, free of charge, to any person obtaining a | 6 | * Permission is hereby granted, free of charge, to any person obtaining a |
7 | * copy of this software and associated documentation files (the "Software"), | 7 | * copy of this software and associated documentation files (the "Software"), |
@@ -43,7 +43,7 @@ int gk20a_init_therm_support(struct gk20a *g) | |||
43 | { | 43 | { |
44 | u32 err; | 44 | u32 err; |
45 | 45 | ||
46 | gk20a_dbg_fn(""); | 46 | nvgpu_log_fn(g, " "); |
47 | 47 | ||
48 | err = gk20a_init_therm_reset_enable_hw(g); | 48 | err = gk20a_init_therm_reset_enable_hw(g); |
49 | if (err) | 49 | if (err) |
@@ -73,7 +73,7 @@ int gk20a_elcg_init_idle_filters(struct gk20a *g) | |||
73 | u32 active_engine_id = 0; | 73 | u32 active_engine_id = 0; |
74 | struct fifo_gk20a *f = &g->fifo; | 74 | struct fifo_gk20a *f = &g->fifo; |
75 | 75 | ||
76 | gk20a_dbg_fn(""); | 76 | nvgpu_log_fn(g, " "); |
77 | 77 | ||
78 | for (engine_id = 0; engine_id < f->num_engines; engine_id++) { | 78 | for (engine_id = 0; engine_id < f->num_engines; engine_id++) { |
79 | active_engine_id = f->active_engines_list[engine_id]; | 79 | active_engine_id = f->active_engines_list[engine_id]; |
@@ -104,6 +104,6 @@ int gk20a_elcg_init_idle_filters(struct gk20a *g) | |||
104 | idle_filter &= ~therm_hubmmu_idle_filter_value_m(); | 104 | idle_filter &= ~therm_hubmmu_idle_filter_value_m(); |
105 | gk20a_writel(g, therm_hubmmu_idle_filter_r(), idle_filter); | 105 | gk20a_writel(g, therm_hubmmu_idle_filter_r(), idle_filter); |
106 | 106 | ||
107 | gk20a_dbg_fn("done"); | 107 | nvgpu_log_fn(g, "done"); |
108 | return 0; | 108 | return 0; |
109 | } | 109 | } |