omap_fb_drv: use usleep in 'Timer_delayer'

fix #670
This commit is contained in:
Martin Stein 2013-02-25 17:43:23 +01:00 committed by Norman Feske
parent 430d4064b8
commit 571f8fb2f3

View File

@ -46,15 +46,7 @@ class Framebuffer::Driver
*/ */
void usleep(unsigned us) void usleep(unsigned us)
{ {
/* polling */ Timer::Connection::usleep(us);
if (us == 0)
return;
unsigned ms = us / 1000;
if (ms == 0)
ms = 1;
Timer::Connection::msleep(ms);
} }
} _delayer; } _delayer;