use nanosleep instead of usleep, ugaX11 calls msSleep instead of usleep
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2376 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
extern void msSleep (unsigned long Milliseconds);
|
||||
|
||||
/* XQueryPointer */
|
||||
|
||||
struct uga_drv_shift_mask
|
||||
@@ -347,7 +349,7 @@ UgaCheckKey(EFI_UNIX_UGA_IO_PROTOCOL *UgaIo)
|
||||
return EFI_SUCCESS;
|
||||
else {
|
||||
/* EFI is certainly polling. Be CPU-friendly. */
|
||||
usleep (50000);
|
||||
msSleep (20);
|
||||
return EFI_NOT_READY;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user