diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c index 677c4b49..a6ca8214 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | |||
@@ -233,16 +233,9 @@ static int __gk20a_channel_syncpt_incr(struct gk20a_channel_sync *s, | |||
233 | thresh = nvhost_syncpt_incr_max_ext(sp->host1x_pdev, sp->id, 1); | 233 | thresh = nvhost_syncpt_incr_max_ext(sp->host1x_pdev, sp->id, 1); |
234 | 234 | ||
235 | if (register_irq) { | 235 | if (register_irq) { |
236 | /* nvhost action_gpfifo_submit_complete releases this ref. */ | 236 | err = nvhost_intr_register_notifier(sp->host1x_pdev, |
237 | err = gk20a_busy(c->g->dev); | 237 | sp->id, thresh, |
238 | 238 | gk20a_channel_syncpt_update, c); | |
239 | if (!err) { | ||
240 | err = nvhost_intr_register_notifier(sp->host1x_pdev, | ||
241 | sp->id, thresh, | ||
242 | gk20a_channel_syncpt_update, c); | ||
243 | if (err) | ||
244 | gk20a_idle(c->g->dev); | ||
245 | } | ||
246 | 239 | ||
247 | /* Adding interrupt action should never fail. A proper error | 240 | /* Adding interrupt action should never fail. A proper error |
248 | * handling here would require us to decrement the syncpt max | 241 | * handling here would require us to decrement the syncpt max |