summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/os/linux/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/module.c')
-rw-r--r--drivers/gpu/nvgpu/os/linux/module.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/module.c b/drivers/gpu/nvgpu/os/linux/module.c
index c453bced..964fc651 100644
--- a/drivers/gpu/nvgpu/os/linux/module.c
+++ b/drivers/gpu/nvgpu/os/linux/module.c
@@ -109,6 +109,11 @@ void gk20a_busy_noresume(struct gk20a *g)
109 pm_runtime_get_noresume(dev_from_gk20a(g)); 109 pm_runtime_get_noresume(dev_from_gk20a(g));
110} 110}
111 111
112int gk20a_busy_try_noresume(struct gk20a *g)
113{
114 return pm_runtime_get_if_in_use(dev_from_gk20a(g));
115}
116
112/* 117/*
113 * Check if the device can go busy. 118 * Check if the device can go busy.
114 */ 119 */