summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/module.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/module.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c
index 99bbc25e..c6794e44 100644
--- a/drivers/gpu/nvgpu/common/linux/module.c
+++ b/drivers/gpu/nvgpu/common/linux/module.c
@@ -96,8 +96,6 @@ int gk20a_busy(struct gk20a *g)
96 } 96 }
97 } 97 }
98 98
99 gk20a_scale_notify_busy(dev);
100
101fail: 99fail:
102 up_read(&g->busy_lock); 100 up_read(&g->busy_lock);
103 101
@@ -121,16 +119,8 @@ void gk20a_idle(struct gk20a *g)
121 return; 119 return;
122 120
123 if (pm_runtime_enabled(dev)) { 121 if (pm_runtime_enabled(dev)) {
124#ifdef CONFIG_PM
125 if (atomic_read(&g->dev->power.usage_count) == 1)
126 gk20a_scale_notify_idle(dev);
127#endif
128
129 pm_runtime_mark_last_busy(dev); 122 pm_runtime_mark_last_busy(dev);
130 pm_runtime_put_sync_autosuspend(dev); 123 pm_runtime_put_sync_autosuspend(dev);
131
132 } else {
133 gk20a_scale_notify_idle(dev);
134 } 124 }
135} 125}
136 126