HAL_Linux: don't use usleep() in suspend_timer_procs()

usleep can cause a large delay with PREEMPT kernel
This commit is contained in:
Andrew Tridgell 2014-08-19 19:24:48 +10:00
parent 94e14f5dcb
commit 8f280d212b
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ void LinuxScheduler::suspend_timer_procs()
{ {
_timer_suspended = true; _timer_suspended = true;
while (_in_timer_proc) { while (_in_timer_proc) {
usleep(1); delay_microseconds(20);
} }
} }