Use sleep in busywait

- In some targets usleep hogs cpu, using sleep instead
This commit is contained in:
vdutta 2022-09-14 11:14:42 +05:30
parent b0203fa4bf
commit 94cc2f8c98
2 changed files with 2 additions and 2 deletions

View file

@ -286,7 +286,7 @@ void check_firewall_restart_state()
break;
}
usleep(500 * 1000);
sleep(1);
FREE(state);
count++;
} while(count < 10);

View file

@ -288,7 +288,7 @@ void wait_firmware_to_be_applied(int bank_id)
if (bank_id_status == 1)
break;
usleep(1000 * 1000);
sleep(1);
count++;
} while(count < 15);
}