diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/getkey.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/getkey.c b/src/core/getkey.c index f16cafa42..d69cfb44b 100644 --- a/src/core/getkey.c +++ b/src/core/getkey.c @@ -24,6 +24,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <ipxe/process.h> #include <ipxe/keys.h> #include <ipxe/timer.h> +#include <ipxe/nap.h> /** @file * @@ -46,6 +47,7 @@ static int getchar_timeout ( unsigned long timeout ) { step(); if ( iskey() ) return getchar(); + cpu_nap(); } return -1; |
