diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/driver_common.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/driver_common.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/driver_common.c b/drivers/gpu/nvgpu/common/linux/driver_common.c index b7444a9e..0dd0d62c 100644 --- a/drivers/gpu/nvgpu/common/linux/driver_common.c +++ b/drivers/gpu/nvgpu/common/linux/driver_common.c | |||
@@ -274,3 +274,15 @@ void nvgpu_wait_for_deferred_interrupts(struct gk20a *g) | |||
274 | atomic_read(&l->sw_irq_nonstall_last_handled)) | 274 | atomic_read(&l->sw_irq_nonstall_last_handled)) |
275 | <= 0, 0); | 275 | <= 0, 0); |
276 | } | 276 | } |
277 | |||
278 | static void nvgpu_free_gk20a(struct gk20a *g) | ||
279 | { | ||
280 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); | ||
281 | |||
282 | kfree(l); | ||
283 | } | ||
284 | |||
285 | void nvgpu_init_gk20a(struct gk20a *g) | ||
286 | { | ||
287 | g->free = nvgpu_free_gk20a; | ||
288 | } | ||