habanalabs: move reset workqueue to be under hl_device
authorTomer Tayar <ttayar@habana.ai>
Fri, 30 Sep 2022 11:36:27 +0000 (14:36 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 23 Nov 2022 14:13:40 +0000 (16:13 +0200)
commit1eebb259290b1be5398fec953bdd7923a5cbf33e
treed79afddb3a7503f7c9269a1895b00b2b5323835a
parent51236cd95e7bcea41e57fb2cf238312be21dcf58
habanalabs: move reset workqueue to be under hl_device

'struct hl_device_reset_work' is used as a wrapper for the reset work
and its parameters, including the reset workqueue on which it runs.
In a future commit, another reset related work with similar parameters
is going to be added, but it won't use the reset workqueue.

As in any case there is a single reset workqueue, and to allow the resue
of this structure, move the reset workqueue to 'struct hl_device'.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/device.c
drivers/misc/habanalabs/common/habanalabs.h