Skip to content

Commit 87c60e2

Browse files
committed
accel/habanalabs: remove leftover code
This code was added as part of a bigger feature which was never upstreamed, so remove this code. Signed-off-by: Oded Gabbay <[email protected]> Reviewed-by: Ofir Bitton <[email protected]>
1 parent 6fc69ca commit 87c60e2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/accel/habanalabs/common/command_submission.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,16 +1751,11 @@ static int hl_cs_ctx_switch(struct hl_fpriv *hpriv, union hl_cs_args *args,
17511751
/* Need to wait for restore completion before execution phase */
17521752
if (num_chunks) {
17531753
enum hl_cs_wait_status status;
1754-
wait_again:
1754+
17551755
ret = _hl_cs_wait_ioctl(hdev, ctx,
17561756
jiffies_to_usecs(hdev->timeout_jiffies),
17571757
*cs_seq, &status, NULL);
17581758
if (ret) {
1759-
if (ret == -ERESTARTSYS) {
1760-
usleep_range(100, 200);
1761-
goto wait_again;
1762-
}
1763-
17641759
dev_err(hdev->dev,
17651760
"Restore CS for context %d failed to complete %d\n",
17661761
ctx->asid, ret);

0 commit comments

Comments
 (0)