habanalabs: Modify the cs_cnt of a CB to be atomic

Modify the CS counter of a CB to be atomic, so no locking is required
when it is being modified or read.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
Tomer Tayar 2020-08-02 22:51:31 +03:00 • committed by Oded Gabbay
commit f074867454
5 changed files with 17 additions and 32 deletions