diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/ltc/ltc.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/ltc/ltc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/ltc/ltc.c b/drivers/gpu/nvgpu/common/ltc/ltc.c index 1beb1974..3d85db3f 100644 --- a/drivers/gpu/nvgpu/common/ltc/ltc.c +++ b/drivers/gpu/nvgpu/common/ltc/ltc.c | |||
@@ -34,16 +34,18 @@ int nvgpu_init_ltc_support(struct gk20a *g) | |||
34 | g->mm.ltc_enabled_current = true; | 34 | g->mm.ltc_enabled_current = true; |
35 | g->mm.ltc_enabled_target = true; | 35 | g->mm.ltc_enabled_target = true; |
36 | 36 | ||
37 | if (g->ops.ltc.init_fs_state) | 37 | if (g->ops.ltc.init_fs_state) { |
38 | g->ops.ltc.init_fs_state(g); | 38 | g->ops.ltc.init_fs_state(g); |
39 | } | ||
39 | 40 | ||
40 | return 0; | 41 | return 0; |
41 | } | 42 | } |
42 | 43 | ||
43 | void nvgpu_ltc_sync_enabled(struct gk20a *g) | 44 | void nvgpu_ltc_sync_enabled(struct gk20a *g) |
44 | { | 45 | { |
45 | if (!g->ops.ltc.set_enabled) | 46 | if (!g->ops.ltc.set_enabled) { |
46 | return; | 47 | return; |
48 | } | ||
47 | 49 | ||
48 | nvgpu_spinlock_acquire(&g->ltc_enabled_lock); | 50 | nvgpu_spinlock_acquire(&g->ltc_enabled_lock); |
49 | if (g->mm.ltc_enabled_current != g->mm.ltc_enabled_target) { | 51 | if (g->mm.ltc_enabled_current != g->mm.ltc_enabled_target) { |