]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/habanalabs: gradual sleep in polling memory macro
authorDidi Freiman <dfreiman@habana.ai>
Tue, 7 May 2024 10:47:12 +0000 (13:47 +0300)
committerOfir Bitton <obitton@habana.ai>
Sun, 23 Jun 2024 06:53:33 +0000 (09:53 +0300)
commit9dec27bb8ae4e0792c3a4cb8504bce8931676fb1
tree9e404499e324f7bf90a3616bf8beaf7ca70b1dc2
parent0199e6392e067299ece25863abd7453e4823f13b
accel/habanalabs: gradual sleep in polling memory macro

It’s better to avoid long sleeps right from the beginning of the polling
since the data may be available much sooner than the sleep period.
Because polling host memory is inexpensive, this change gradually
increases the sleep time up to the user-requested period.

Signed-off-by: Didi Freiman <dfreiman@habana.ai>
Reviewed-by: Ofir Bitton <obitton@habana.ai>
Signed-off-by: Ofir Bitton <obitton@habana.ai>
drivers/accel/habanalabs/common/habanalabs.h