summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r--drivers/gpu/nvgpu/os/linux/module.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/module.c b/drivers/gpu/nvgpu/os/linux/module.c
index 7653f607..18345ada 100644
--- a/drivers/gpu/nvgpu/os/linux/module.c
+++ b/drivers/gpu/nvgpu/os/linux/module.c
@@ -107,7 +107,10 @@ struct device_node *nvgpu_get_node(struct gk20a *g)
107 107
108void gk20a_busy_noresume(struct gk20a *g) 108void gk20a_busy_noresume(struct gk20a *g)
109{ 109{
110 pm_runtime_get_noresume(dev_from_gk20a(g)); 110 int ret = pm_runtime_get_if_in_use(dev_from_gk20a(g));
111
112 if (ret <= 0)
113 pm_runtime_get_noresume(dev_from_gk20a(g));
111} 114}
112 115
113/* 116/*