summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/therm_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/therm_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/therm_gk20a.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/therm_gk20a.c b/drivers/gpu/nvgpu/gk20a/therm_gk20a.c
index b700c735..00159fae 100644
--- a/drivers/gpu/nvgpu/gk20a/therm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/therm_gk20a.c
@@ -16,6 +16,8 @@
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19#include <nvgpu/enabled.h>
20
19#include "gk20a.h" 21#include "gk20a.h"
20 22
21#include <nvgpu/hw/gk20a/hw_gr_gk20a.h> 23#include <nvgpu/hw/gk20a/hw_gr_gk20a.h>
@@ -123,7 +125,7 @@ int gk20a_elcg_init_idle_filters(struct gk20a *g)
123 active_engine_id = f->active_engines_list[engine_id]; 125 active_engine_id = f->active_engines_list[engine_id];
124 gate_ctrl = gk20a_readl(g, therm_gate_ctrl_r(active_engine_id)); 126 gate_ctrl = gk20a_readl(g, therm_gate_ctrl_r(active_engine_id));
125 127
126 if (g->is_fmodel) { 128 if (nvgpu_is_enabled(g, NVGPU_IS_FMODEL)) {
127 gate_ctrl = set_field(gate_ctrl, 129 gate_ctrl = set_field(gate_ctrl,
128 therm_gate_ctrl_eng_delay_after_m(), 130 therm_gate_ctrl_eng_delay_after_m(),
129 therm_gate_ctrl_eng_delay_after_f(4)); 131 therm_gate_ctrl_eng_delay_after_f(4));