habanalabs: rename user_ctx as compute_ctx
authorOded Gabbay <oded.gabbay@gmail.com>
Tue, 30 Jul 2019 08:49:36 +0000 (11:49 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 5 Sep 2019 11:55:26 +0000 (14:55 +0300)
commit86d5307a6d3507258460939fab040c6aafb506f9
tree28a772c19bfbc55e0cf88a6c560e3b10c9ee2ff3
parent02e921e42b277c632ebdce355cc22d145944e968
habanalabs: rename user_ctx as compute_ctx

This patch renames the "user_ctx" field in the device structure to
"compute_ctx". This better reflects the meaning of this context.

In addition, we also check in the ctx_fini() that the debug mode should be
disabled only if the context being destroyed is the compute context. This
has no effect right now as we only have a single process and a single
context, but this makes the code more ready for multiple process support.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/habanalabs/context.c
drivers/misc/habanalabs/debugfs.c
drivers/misc/habanalabs/device.c
drivers/misc/habanalabs/habanalabs.h