habanalabs: refactor wait-for-user-interrupt function
authorBharat Jauhari <bjauhari@habana.ai>
Wed, 8 Sep 2021 14:32:54 +0000 (17:32 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:05 +0000 (08:59 +0200)
commitd4194f21400e9b2caef2d48c63ec5ef102eead22
tree072fe556c9b9b7086ae400d088f17109a72dabb0
parent792512459fb2a62a5ea08264a0cdfb7e46a391a9
habanalabs: refactor wait-for-user-interrupt function

Refactor the wait-for-user-interrupt routine to make it more
generic for re-use for other user exposed h/w interfaces in future
ASICs.

Signed-off-by: Bharat Jauhari <bjauhari@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c