]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
accel/habanalabs: break is_idle function into per-engine sub-routines
authorKoby Elbaz <kelbaz@habana.ai>
Sun, 19 Feb 2023 11:30:49 +0000 (13:30 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 15 Mar 2023 11:29:14 +0000 (13:29 +0200)
commitd85f0531b9285cf7dc6784b06e7e7dbc1c04dcee
treeae3035aefbef39bdf82507784c7fc95b8f486ff8
parentefbd36b2816ba442f55288e3f6488f762d32749f
accel/habanalabs: break is_idle function into per-engine sub-routines

is_idle() was too long, so break it up for readability.
In addition, we can now use the new sub-routines from other places.

Signed-off-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/gaudi2/gaudi2.c