diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/module.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index 708190f2..72719297 100644 --- a/drivers/gpu/nvgpu/common/linux/module.c +++ b/drivers/gpu/nvgpu/common/linux/module.c | |||
@@ -109,12 +109,11 @@ void gk20a_idle(struct gk20a *g) | |||
109 | struct device *dev; | 109 | struct device *dev; |
110 | 110 | ||
111 | atomic_dec(&g->usage_count); | 111 | atomic_dec(&g->usage_count); |
112 | down_read(&g->busy_lock); | ||
113 | 112 | ||
114 | dev = g->dev; | 113 | dev = g->dev; |
115 | 114 | ||
116 | if (!(dev && gk20a_can_busy(g))) | 115 | if (!(dev && gk20a_can_busy(g))) |
117 | goto fail; | 116 | return; |
118 | 117 | ||
119 | if (pm_runtime_enabled(dev)) { | 118 | if (pm_runtime_enabled(dev)) { |
120 | #ifdef CONFIG_PM | 119 | #ifdef CONFIG_PM |
@@ -128,8 +127,6 @@ void gk20a_idle(struct gk20a *g) | |||
128 | } else { | 127 | } else { |
129 | gk20a_scale_notify_idle(dev); | 128 | gk20a_scale_notify_idle(dev); |
130 | } | 129 | } |
131 | fail: | ||
132 | up_read(&g->busy_lock); | ||
133 | } | 130 | } |
134 | 131 | ||
135 | int gk20a_pm_finalize_poweron(struct device *dev) | 132 | int gk20a_pm_finalize_poweron(struct device *dev) |