habanalabs: Skip updating CI of internal queues if not in use
authorTomer Tayar <ttayar@habana.ai>
Mon, 27 Jul 2020 21:28:51 +0000 (00:28 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 30 Nov 2020 08:47:32 +0000 (10:47 +0200)
commit4ba1b227b6c77252f49f96aa77cf1b50b9d2542c
tree46f017b058dee031684e7fc6d801068e7f1942c0
parentea6ee260cbcdd1e00d8eb62057d432dddd2a71d1
habanalabs: Skip updating CI of internal queues if not in use

There are no internal queues if H/W queues are being used.
In this case we can skip the redundant traversal over the queues array,
looking for internal queues.

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/hw_queue.c