habanalabs: send device activity in a proper context
authorOfir Bitton <obitton@habana.ai>
Sun, 28 Aug 2022 09:46:27 +0000 (12:46 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 19 Sep 2022 12:08:37 +0000 (15:08 +0300)
commitf5ec364c9ecd1113492e15ceaafd4447f5836528
tree0c2ae548cb8b68cb9404eb58eb9cb5f4560e5253
parent4745b2f0d0d4b291ec69619c815f53fd8a968d9a
habanalabs: send device activity in a proper context

'Device activity open packet' should be sent outside of mutex as
there is no real necessity for a lock.
In addition 'device activity close packet' should be sent upon an
actual release of the device.

Signed-off-by: Ofir Bitton <obitton@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_drv.c