habanalabs: simplify wait for interrupt with timestamp flow
authorYuri Nudelman <ynudelman@habana.ai>
Wed, 6 Oct 2021 08:58:02 +0000 (11:58 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 18 Oct 2021 09:05:47 +0000 (12:05 +0300)
commitd2f5684b8f28da52b8df9ac92a84d0f1c6983f5f
tree5cefddcc300b16dc3ef751467ac901935ad0aa14
parent4a18dde5e4c6348d48e3021cfbb01ef699005f19
habanalabs: simplify wait for interrupt with timestamp flow

Remove the flag that determines whether to take a timestamp once the
interrupt arrives.
Instead, always take the timestamp once per interrupt.
This is a must for the user-space to measure its graph operations
to evaluate the graph computation time.

Signed-off-by: Yuri Nudelman <ynudelman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/irq.c