mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-03-14 21:10:02 +01:00
Use sleep in busywait
- In some targets usleep hogs cpu, using sleep instead
This commit is contained in:
parent
b0203fa4bf
commit
94cc2f8c98
2 changed files with 2 additions and 2 deletions
|
|
@ -286,7 +286,7 @@ void check_firewall_restart_state()
|
|||
break;
|
||||
}
|
||||
|
||||
usleep(500 * 1000);
|
||||
sleep(1);
|
||||
FREE(state);
|
||||
count++;
|
||||
} while(count < 10);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue